commit | 336ad81d9d3383ff59288c7799bfdc4022018743 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Wed Nov 08 20:29:40 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Nov 08 20:29:40 2023 +0000 |
tree | 223ab5cc8ec07dd491ae60c1dc8ffda8b845a03c | |
parent | a94f23af13c2783a98b48fdcdcb62fa72b2555d9 [diff] | |
parent | 8ff37450e79b31e18d85b2341f372186fe52e3e4 [diff] |
Add cargo2android.json. am: 4a3779cd32 am: ea5e038146 am: 8ff37450e7 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2822376 Change-Id: I94486e69728921fe6efe04f05e274706d6be14fb 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.