commit | cbeafe32c16bda02cf01b3b9c7e54848b2320847 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <[email protected]> | Tue Feb 06 13:03:53 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Feb 06 13:03:53 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | d0d8f43613b24a524ddcf09e067e72d50583413b [diff] | |
parent | 884ddaa06241eafe1614f40edb39b8789c1a4518 [diff] |
Upgrade virtio-bindings to 0.2.2 am: a5a84daaaa am: 884ddaa062 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2950371 Change-Id: I47f77a6327d61dc81089c4b9053acc80af9bc329 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.