Migrate to cargo_embargo. am: c6f65f5c23 am: 95524d52b7

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

Change-Id: Ica33cc6e1e09ee859d6bb66a465b8ea88b27131f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: d298752f0519c39a499f169984740bba5dde1101
  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. LICENSE-APACHE
  11. LICENSE-BSD-3-Clause
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. MODULE_LICENSE_BSD
  15. OWNERS
  16. 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.