commit | 2d817c03b313c73767659deff5e7caa5ac4aa7fa | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Apr 30 23:18:00 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Apr 30 23:18:00 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | cbeafe32c16bda02cf01b3b9c7e54848b2320847 [diff] | |
parent | dc1e733f3d4f5ab720c09e9516bc2c312ebdf146 [diff] |
Snap for 11784291 from dc1e733f3d4f5ab720c09e9516bc2c312ebdf146 to 24Q3-release Change-Id: Id2677cb60d7dfd5b220120f810a71f6b4d1c9ef8
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.