commit | 307e6aaa15547fbf82438f97017255613b2402e5 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed Aug 07 18:26:23 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed Aug 07 18:26:23 2024 +0000 |
tree | 2a21516daeac3699a85b40e496d199e5b70e1635 | |
parent | 749c09bde6162e129232a1fe9a57bf5dc59f1ab2 [diff] |
Create patch from LICENSE file Test: ran cargo_embargo Bug: 339424309 Change-Id: Id853e0a400dd5cde56547708cb7c3766e0af0934
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.