tree: 1d03fd071b5275d023211410ef2331ecb763008f [path history] [tgz]
  1. scripts/
  2. src/
  3. .android-checksum.json
  4. .cargo-checksum.json
  5. Android.bp
  6. Cargo.lock
  7. Cargo.toml
  8. cargo2android_module.bp.fragment
  9. cargo_embargo.json
  10. CHANGELOG.md
  11. CONTRIBUTING.md
  12. import-linux-headers.sh
  13. LICENSE-APACHE
  14. METADATA
  15. MODULE_LICENSE_APACHE2
  16. README.md
  17. TEST_MAPPING
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.