#virtio

archived virtio-bindings

Rust FFI bindings to virtio generated using bindgen

1 unstable release

0.1.0 Oct 10, 2019

#8 in #virtio

Download history 2560/week @ 2022-06-09 2587/week @ 2022-06-16 2077/week @ 2022-06-23 2330/week @ 2022-06-30 2445/week @ 2022-07-07 3015/week @ 2022-07-14 3658/week @ 2022-07-21 3165/week @ 2022-07-28 4326/week @ 2022-08-04 4131/week @ 2022-08-11 3225/week @ 2022-08-18 4001/week @ 2022-08-25 4004/week @ 2022-09-01 3019/week @ 2022-09-08 3537/week @ 2022-09-15 2946/week @ 2022-09-22

14,251 downloads per month
Used in 9 crates (6 directly)

BSD-3-Clause OR Apache-2.0

125KB
4K SLoC

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:

  • virtio-v4_14_0 contains the bindings for the Linux kernel version 4.14
  • virtio-v5_0_0 contains the bindings for the Linux kernel version 5.0

No runtime deps

Features

  • virtio-v4_14_0
  • virtio-v5_0_0