Skip to content

Commit 396020f

Browse files
committed
replace code with compatibility imports
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 1a11edf commit 396020f

File tree

21 files changed

+113
-9855
lines changed

21 files changed

+113
-9855
lines changed

Cargo.toml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,16 @@ autobenches = false
1313

1414
[features]
1515
default = ["rawfd"]
16-
backend-bitmap = ["dep:libc", "dep:winapi"]
17-
backend-mmap = ["dep:libc", "dep:winapi"]
18-
backend-atomic = ["arc-swap"]
19-
rawfd = ["dep:libc"]
20-
xen = ["backend-mmap", "bitflags", "vmm-sys-util"]
16+
backend-bitmap = ["vm-memory-new/backend-bitmap"]
17+
backend-mmap = ["vm-memory-new/backend-mmap"]
18+
backend-atomic = ["vm-memory-new/backend-atomic"]
19+
rawfd = ["vm-memory-new/rawfd"]
20+
xen = ["vm-memory-new/xen"]
2121

22-
[dependencies]
23-
libc = { version = "0.2.39", optional = true }
24-
arc-swap = { version = "1.0.0", optional = true }
25-
bitflags = { version = "2.4.0", optional = true }
26-
thiserror = "2.0.16"
27-
vmm-sys-util = { version = ">=0.12.1, <=0.15.0", optional = true }
28-
29-
[target.'cfg(target_family = "windows")'.dependencies.winapi]
30-
version = "0.3"
31-
features = ["errhandlingapi", "sysinfoapi"]
32-
optional = true
22+
[dependencies.vm-memory-new]
23+
package = "vm-memory"
24+
version = "0.18.0"
25+
default-features = false
3326

3427
[dev-dependencies]
3528
criterion = "0.7.0"
@@ -40,10 +33,6 @@ vmm-sys-util = "0.15.0"
4033
name = "main"
4134
harness = false
4235

43-
[profile.bench]
44-
lto = true
45-
codegen-units = 1
46-
4736
[package.metadata.docs.rs]
4837
all-features = true
4938
rustdoc-args = ["--cfg", "docsrs"]

0 commit comments

Comments
 (0)