commit | d0d8f43613b24a524ddcf09e067e72d50583413b | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Tue Nov 14 01:45:07 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Nov 14 01:45:07 2023 +0000 |
tree | d298752f0519c39a499f169984740bba5dde1101 | |
parent | 59b03431c17fd337f9ba2cc3932c45baaa99c0b4 [diff] | |
parent | f57955832ece6d91a351dbb79729cf4987f8154f [diff] |
Migrate to cargo_embargo. am: c6f65f5c23 am: 95524d52b7 am: f57955832e Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2828075 Change-Id: I451267d4e936fa5d74e8ffaee7cd5ee15ae1a675 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.