commit | 200ecc892507df1142eb0e25335e2f8a66aa7718 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:33:40 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:33:40 2024 +0000 |
tree | a0885d14feb95ca2ba172d5299f0ee2a338d5740 | |
parent | dc1e733f3d4f5ab720c09e9516bc2c312ebdf146 [diff] | |
parent | 749c09bde6162e129232a1fe9a57bf5dc59f1ab2 [diff] |
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.