Upgrade virtio-bindings to 0.2.2 am: a5a84daaaa

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/virtio-bindings/+/2950371

Change-Id: Iece06b97b8845a1e0b7216dc8c8f3040edb7de25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: 02083ca60b1d9c1f00d4a8cfcc1ea9ff1a64df1d
  1. src/
  2. .cargo_vcs_info.json
  3. Android.bp
  4. Cargo.toml
  5. Cargo.toml.orig
  6. cargo_embargo.json
  7. CHANGELOG.md
  8. CONTRIBUTING.md
  9. LICENSE
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. MODULE_LICENSE_BSD
  13. OWNERS
  14. README.md
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.