commit | dc1e733f3d4f5ab720c09e9516bc2c312ebdf146 | [log] [tgz] |
---|---|---|
author | Xin Li <[email protected]> | Tue Apr 30 02:10:39 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Apr 30 02:10:39 2024 +0000 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | cbeafe32c16bda02cf01b3b9c7e54848b2320847 [diff] | |
parent | 2e0a3bef5701b52af70dc4d54c57919ba7105575 [diff] |
[automerger skipped] Empty merge of Android 24Q2 Release (ab/11526283) to aosp-main-future am: 2e0a3bef57 -s ours am skip reason: Merged-In Iece06b97b8845a1e0b7216dc8c8f3040edb7de25 with SHA-1 884ddaa062 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/27145195 Change-Id: I0ee4ca5325552874e6365878a7807093f41cf079 Signed-off-by: Automerger Merge Worker <[email protected]>
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.