commit | eb41727131753ec6d4d8d72217cafc78a419ae23 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Tue Aug 20 17:59:32 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Tue Aug 20 17:59:32 2024 +0000 |
tree | 2a21516daeac3699a85b40e496d199e5b70e1635 | |
parent | 760b5cf53c600524c0df5eb46b06091390da7ffc [diff] | |
parent | 307e6aaa15547fbf82438f97017255613b2402e5 [diff] |
Snap for 12252487 from 307e6aaa15547fbf82438f97017255613b2402e5 to simpleperf-release Change-Id: I9d7327eca00a1e8accadbf9df5492fbdf6ca8964
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.