commit | 0e4de8e57a2905785bd9179af3586cf655b34568 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Sep 29 01:16:33 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Sep 29 01:16:33 2023 +0000 |
tree | dcb4f03134f495bb4d5bd0e66a501d8de2c23f74 | |
parent | 869b6d33c44f59e2fb226f0d4ad7179a3903d9ef [diff] | |
parent | 4206ffa4350583d3e67f27c1c5e34f1cddf7b5ed [diff] |
Snap for 10878163 from 4206ffa4350583d3e67f27c1c5e34f1cddf7b5ed to 24Q1-release Change-Id: I0cda8d42fcca873d0afe8374a711ca63046bab10
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.