commit | 95524d52b75d7ba5669501bbe5370acb30b870fd | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Tue Nov 14 00:39:09 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Nov 14 00:39:09 2023 +0000 |
tree | d298752f0519c39a499f169984740bba5dde1101 | |
parent | ea5e0381466b67e1754138285a01de86efe6926a [diff] | |
parent | c6f65f5c2393fb2f97552043b3b17442f0b1edaf [diff] |
Migrate to cargo_embargo. am: c6f65f5c23 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2828075 Change-Id: I6f28999e5fc6a499eca7e5c99074d5832fd8e659 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.