commit | 884ddaa06241eafe1614f40edb39b8789c1a4518 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Tue Feb 06 12:06:40 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Feb 06 12:06:40 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | d0d8f43613b24a524ddcf09e067e72d50583413b [diff] | |
parent | a5a84daaaad6132487f1a324afabf2cfb7c7ee17 [diff] |
Upgrade virtio-bindings to 0.2.2 am: a5a84daaaa Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2950371 Change-Id: Iece06b97b8845a1e0b7216dc8c8f3040edb7de25 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.