tree: 300d719d56f2807127d058de52fc002ab8ac27f4 [path history] [tgz]
  1. patches/
  2. src/
  3. .cargo-checksum.json
  4. Android.bp
  5. Cargo.toml
  6. cargo_embargo.json
  7. CHANGELOG.md
  8. CONTRIBUTING.md
  9. LICENSE
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. 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.