commit | 166133a0dd2bd4abaff764690420abde3cc10db5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:18:30 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Mar 07 02:18:30 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | b07434f1fba316abad81067d15a5963473ad6784 [diff] | |
parent | 884ddaa06241eafe1614f40edb39b8789c1a4518 [diff] |
Snap for 11541002 from 884ddaa06241eafe1614f40edb39b8789c1a4518 to sdk-release Change-Id: I6942f59fce2a260af9577febffb95f005af2df31
Rust FFI bindings to virtio generated using bindgen.
Add this to your Cargo.toml
:
virtio-bindings = "0.2"
You can then import the bindings where you need them. As an example, to grab the bindings for virtio-blk, you can do:
use virtio_bindings::bindings::virtio_blk::*;
To update the bindings, follow the steps in the Contributing Document.