Skip to content

Commit bec78d3

Browse files
committed
build: Move rust-vmm crates into workspace
Setup workspace for `fuse-backend-rs` and move rust-vmm crates into `workspace.dependencies` section to better manage dependencies from rust-vmm community. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent 48f27f3 commit bec78d3

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

Cargo.toml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ repository = "https://github.com/cloud-hypervisor/fuse-backend-rs"
1616
homepage = "https://github.com/cloud-hypervisor/"
1717
build = "build.rs"
1818

19+
[workspace]
20+
members = [
21+
"tests/passthrough",
22+
"tests/overlay",
23+
]
24+
25+
[workspace.dependencies]
26+
# rust-vmm crates
27+
vhost = "0.11.0"
28+
virtio-bindings = "=0.2.4"
29+
virtio-queue = "0.12.0"
30+
vm-memory = "0.14.1"
31+
vmm-sys-util = "0.12.1"
32+
1933
[dependencies]
2034
arc-swap = "1.5"
2135
async-trait = { version = "0.1.42", optional = true }
@@ -30,11 +44,11 @@ nix = "0.24"
3044
radix_trie = "0.2.1"
3145
tokio = { version = "1", optional = true }
3246
tokio-uring = { version = "0.4.0", optional = true }
33-
vmm-sys-util = { version = "0.12.1", optional = true }
34-
vm-memory = { version = "0.14.1", features = ["backend-mmap"] }
35-
virtio-bindings = { version = "=0.2.4", optional = true }
36-
virtio-queue = { version = "0.12.0", optional = true }
37-
vhost = { version = "0.11.0", features = ["vhost-user","vhost-user-backend"], optional = true }
47+
vmm-sys-util = { workspace = true, optional = true }
48+
vm-memory = { workspace = true, features = ["backend-mmap"] }
49+
virtio-bindings = { workspace = true, optional = true }
50+
virtio-queue = { workspace = true, optional = true }
51+
vhost = { workspace = true, features = ["vhost-user","vhost-user-backend"], optional = true }
3852
versionize_derive = { version = "0.1.6", optional = true }
3953
versionize = { version = "0.2.0", optional = true }
4054

tests/overlay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
[dependencies]
99
fuse-backend-rs = { path = "../../", features = ["fusedev"] }
1010
log = ">=0.4.6"
11-
vmm-sys-util = ">=0.4"
11+
vmm-sys-util = { workspace = true }
1212
libc = ">=0.2.68"
1313
simple_logger = ">=1.13.0"
1414
signal-hook = ">=0.3.10"

0 commit comments

Comments
 (0)