Skip to content

Commit 142a92d

Browse files
committed
vfio-bindings: Update README.md
* Remove the support of multiple Linux kernel versions; * Remove the requirement of using "extern crate"; Signed-off-by: Bo Chen <[email protected]>
1 parent 29b7c5c commit 142a92d

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

vfio-bindings/README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,16 @@
55
The vfio-bindings crate is designed as rust FFI bindings to vfio
66
generated using [bindgen](https://crates.io/crates/bindgen).
77

8-
Multiple Linux versions are supported through rust 'features'. For each
9-
supported Linux version, a feature is introduced.
10-
11-
Currently supported features/Linux versions:
12-
- vfio-v5_0_0 contains the bindings for the Linux kernel version 5.0
8+
Currently the bindings are generated from Linux kernel version v6.6.0.
139

1410
## Usage
1511

1612
First, add the following to your Cargo.toml:
1713
```toml
18-
vfio-bindings = "0.3"
19-
```
20-
Next, add this to your crate root:
21-
22-
```rust
23-
extern crate vfio_bindings;
24-
```
25-
26-
By default vfio-bindings will export a wrapper over the latest available kernel
27-
version it supported, but you can select a different version by specifying it in
28-
your Cargo.toml:
29-
```toml
30-
vfio-bindings = { version = "0.3", features = ["vfio-v5_0_0"]}
14+
vfio-bindings = "0.5"
3115
```
3216

33-
## Examples
34-
35-
To use this bindings, you can do:
17+
Next, to use this bindings, you can do:
3618
```rust
3719
use vfio_bindings::bindings::vfio::*;
3820
```

0 commit comments

Comments
 (0)