Skip to content

Commit 18370f1

Browse files
RuoqingHelikebreath
authored andcommitted
vfio-bindings: Drop vfio-v5_0_0 feature
Support only one version of `vfio_bindings`, which will be automatically selected, so we don't need features to select the version of `vfio_bindings`. Signed-off-by: Ruoqing He <[email protected]>
1 parent 73046c6 commit 18370f1

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

vfio-bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = "2018"
1010
keywords = ["vfio"]
1111

1212
[package.metadata.docs.rs]
13-
features = ["vfio-v5_0_0", "fam-wrappers"]
13+
features = ["fam-wrappers"]
1414

1515
[features]
1616
vfio-v5_0_0 = []

vfio-bindings/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,9 @@ extern crate vmm_sys_util;
88
#[cfg(feature = "fam-wrappers")]
99
mod fam_wrappers;
1010

11-
#[cfg(feature = "vfio-v5_0_0")]
12-
mod vfio_bindings;
13-
14-
// Default to latest version if no version is specified by using the features.
15-
#[cfg(not(feature = "vfio-v5_0_0"))]
1611
mod vfio_bindings;
1712

1813
pub mod bindings {
19-
#[cfg(feature = "vfio-v5_0_0")]
20-
pub use super::vfio_bindings::*;
21-
22-
#[cfg(not(feature = "vfio-v5_0_0"))]
2314
pub use super::vfio_bindings::*;
2415

2516
#[cfg(feature = "fam-wrappers")]

0 commit comments

Comments
 (0)