commit | 9741c52958bded798871100595b09a4d413c7074 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed Aug 07 22:54:20 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Aug 07 22:54:20 2024 +0000 |
tree | 2a21516daeac3699a85b40e496d199e5b70e1635 | |
parent | 200ecc892507df1142eb0e25335e2f8a66aa7718 [diff] | |
parent | 307e6aaa15547fbf82438f97017255613b2402e5 [diff] |
Create patch from LICENSE file am: 307e6aaa15 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/3211975 Change-Id: I419de1bd87f4f181b8e3b489fe559547a96de7e0 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.