rust-vmm / virtio-bindings

This crate is now part of the vm-virtio workspace: https://github.com/rust-vmm/vm-virtio
Apache License 2.0
15 stars 8 forks source link

virtio-bindings

Rust FFI bindings to virtio generated using bindgen.

Usage

Add this to your Cargo.toml:

virtio-bindings = { version = "0.1", features = ["virtio-v5_0_0"]}

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::*;

In the virtio-bindings crate each feature maps to exactly one Linux version as follows: