commit | a98e1281c8e822be284808b78c6d38a294a472ba | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 07 00:15:25 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 07 00:15:25 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | 2e35d3c3a7085372512bf56257b3a45edc0e4897 [diff] | |
parent | cbeafe32c16bda02cf01b3b9c7e54848b2320847 [diff] |
Snap for 11413429 from cbeafe32c16bda02cf01b3b9c7e54848b2320847 to 24D1-release Change-Id: I5be0ebad357f98fd41eb41eacc91dd839869f03b
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.