commit | 2b5faf6678c82e7298b8896582fbe3d3f5fdee2f | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue May 21 19:00:43 2024 +0000 |
committer | James Farrell <[email protected]> | Tue May 21 19:00:43 2024 +0000 |
tree | a0885d14feb95ca2ba172d5299f0ee2a338d5740 | |
parent | 884ddaa06241eafe1614f40edb39b8789c1a4518 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I97777312de37aa281847d7f1ffd9f06a221d5034
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.