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