commit | 4a5d4e196882c1ed77ec420ffe2ceae26aff5152 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu Aug 08 01:15:15 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu Aug 08 01:15:15 2024 +0000 |
tree | 2a21516daeac3699a85b40e496d199e5b70e1635 | |
parent | 200ecc892507df1142eb0e25335e2f8a66aa7718 [diff] | |
parent | 858b4eade279ecf7be160f82817f87cb973bba08 [diff] |
Snap for 12199973 from 858b4eade279ecf7be160f82817f87cb973bba08 to 24Q4-release Change-Id: Ib745c182851c613eb973f8b522d51aaecfb60e6c
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.