commit | c0290c2f80062565d1c9fc08a71fdcc0e4d41160 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Feb 08 01:23:55 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Feb 08 01:23:55 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | 92ca50f4420ae2fa8e65aa89f9219653513f4a70 [diff] | |
parent | a5a84daaaad6132487f1a324afabf2cfb7c7ee17 [diff] |
Snap for 11421525 from a5a84daaaad6132487f1a324afabf2cfb7c7ee17 to simpleperf-release Change-Id: I2b4e7fcdcb51485bc1dfdbfa71fb424a1f66dc21
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.