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