commit | 8c73bc9b87c91f1124cee04d9455df9a95620985 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Feb 07 00:15:59 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Feb 07 00:15:59 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | d0d8f43613b24a524ddcf09e067e72d50583413b [diff] | |
parent | cbeafe32c16bda02cf01b3b9c7e54848b2320847 [diff] |
Snap for 11413328 from cbeafe32c16bda02cf01b3b9c7e54848b2320847 to 24Q2-release Change-Id: I32407d16489b70f37953dc81db8a5324111c67a5
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.