commit | 60c3dbd6e91dc22ac4dc1d85e6b6317aa6124578 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Mon Sep 30 22:59:24 2024 +0000 |
committer | James Farrell <[email protected]> | Mon Sep 30 22:59:24 2024 +0000 |
tree | cdd97c711dfe67dd795baf45d6a5e11fa8e5aed4 | |
parent | 5321f8a7994c2ae32ff802c538547ed0ae9cbef6 [diff] |
Migrate 25 crates to monorepo quickcheck regex-automata ryu same-file serde serde_json serde_spanned serde_test sharded-slab shlex siphasher tinyvec tinyvec_macros tokio-io-timeout toml toml_datetime toml_edit uniffi uniffi_checksum_derive uniffi_meta virtio-bindings virtio-queue virtio-vsock vsock vsprintf zerocopy-derive Bug: http://b/339424309 Test: treehugger Change-Id: Ib36834f91371c6d9d6fde72e2bcdce49060b5cfc
Rust FFI bindings to virtio generated using bindgen.
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::*;
To update the bindings, follow the steps in the Contributing Document.