commit | 5321f8a7994c2ae32ff802c538547ed0ae9cbef6 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Sep 26 14:48:17 2024 +0000 |
committer | James Farrell <[email protected]> | Thu Sep 26 14:48:17 2024 +0000 |
tree | 0dadd9f7f5278489d5f66664878d0226f38ea943 | |
parent | 9741c52958bded798871100595b09a4d413c7074 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I2cdb7545aa2915a97a83c6528f5b9f07dbc29058
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.