commit | 749c09bde6162e129232a1fe9a57bf5dc59f1ab2 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:16:12 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:16:12 2024 +0000 |
tree | a0885d14feb95ca2ba172d5299f0ee2a338d5740 | |
parent | 2e0a3bef5701b52af70dc4d54c57919ba7105575 [diff] | |
parent | 2b5faf6678c82e7298b8896582fbe3d3f5fdee2f [diff] |
Update Android.bp by running cargo_embargo am: 2b5faf6678 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/3095910 Change-Id: I17b832bbd4e60ce40dc6606133a0d8f1eca6d2bc 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.