tree: 60596fd60626d2d633bf1fb3f4bd64033d8e901f [path history] [tgz]
  1. patches/
  2. src/
  3. .android-checksum.json
  4. .cargo-checksum.json
  5. Android.bp
  6. Cargo.toml
  7. cargo_embargo.json
  8. CHANGELOG.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. METADATA
  12. MODULE_LICENSE_APACHE2
  13. README.md
crates/virtio-bindings/README.md

virtio-bindings

Rust FFI bindings to virtio generated using bindgen.

Usage

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::*;

Development

To update the bindings, follow the steps in the Contributing Document.