commit | 6d3da86cf3795922224e701daa460c7938c9014d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 00:14:46 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Nov 15 00:14:46 2023 +0000 |
tree | d298752f0519c39a499f169984740bba5dde1101 | |
parent | 695a988d8e9d9a3c4789f5a53d7e99172cb44d73 [diff] | |
parent | d0d8f43613b24a524ddcf09e067e72d50583413b [diff] |
Snap for 11097608 from d0d8f43613b24a524ddcf09e067e72d50583413b to 24Q1-release Change-Id: I5a03e4610a4e55897cedb10e87061e6a9c3774cb
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.