commit | a5a84daaaad6132487f1a324afabf2cfb7c7ee17 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Tue Feb 06 09:57:44 2024 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Tue Feb 06 09:57:45 2024 +0100 |
tree | 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d | |
parent | 654a8dd65c1a4cfa5517fdf0d104b26d99f834ed [diff] |
Upgrade virtio-bindings to 0.2.2 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update external/rust/crates/virtio-bindings For more info, check https://cs.android.com/android/platform/superproject/+/main:tools/external_updater/README.md Test: TreeHugger Change-Id: I83e44fadc86fda38499dabb953b28dee714e1699
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.