Update Android.bp by running cargo_embargo am: 2b5faf6678 am: 749c09bde6 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/3095910 Change-Id: I72adde870ae7dc786d006fce7384449136fbe65e Signed-off-by: Automerger Merge Worker <[email protected]>
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.