commit | 760b5cf53c600524c0df5eb46b06091390da7ffc | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:54:51 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:54:51 2024 +0000 |
tree | a0885d14feb95ca2ba172d5299f0ee2a338d5740 | |
parent | c0290c2f80062565d1c9fc08a71fdcc0e4d41160 [diff] | |
parent | 749c09bde6162e129232a1fe9a57bf5dc59f1ab2 [diff] |
Snap for 12134224 from 749c09bde6162e129232a1fe9a57bf5dc59f1ab2 to simpleperf-release Change-Id: I3fa277e92198c289ca9cd680ff551c4583d94791
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.