commit | 695a988d8e9d9a3c4789f5a53d7e99172cb44d73 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Nov 09 00:14:55 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Nov 09 00:14:55 2023 +0000 |
tree | 223ab5cc8ec07dd491ae60c1dc8ffda8b845a03c | |
parent | 0e4de8e57a2905785bd9179af3586cf655b34568 [diff] | |
parent | 336ad81d9d3383ff59288c7799bfdc4022018743 [diff] |
Snap for 11071763 from 336ad81d9d3383ff59288c7799bfdc4022018743 to 24Q1-release Change-Id: I7d1dfa294ca00c2bc8ac2de44e8e0cad854409d7
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.