Skip to content

Commit 4f15927

Browse files
RuoqingHeepilys
authored andcommitted
build: Centralize rust-vmm crates to workspace
By centralizing rust-vmm crates to workspace root, effectively reduce places to look around when updating dependencies manually. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent a2a5cd2 commit 4f15927

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ members = [
1313
[profile.bench]
1414
lto = true
1515
codegen-units = 1
16+
17+
[workspace.dependencies]
18+
vm-memory = "0.15.0"
19+
vmm-sys-util = "0.12.1"

virtio-blk/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ edition = "2021"
1313
backend-stdio = []
1414

1515
[dependencies]
16-
vm-memory = "0.15.0"
17-
vmm-sys-util = "0.12.1"
16+
vm-memory = { workspace = true }
17+
vmm-sys-util = { workspace = true }
1818
log = "0.4.17"
1919
virtio-queue = { path = "../virtio-queue" }
2020
virtio-device = { path = "../virtio-device" }
2121
virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" }
2222

2323
[dev-dependencies]
24-
vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] }
24+
vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] }
2525
virtio-queue = { path = "../virtio-queue", features = ["test-utils"] }

virtio-console/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ edition = "2021"
1414
[dependencies]
1515
virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" }
1616
virtio-queue = { path = "../virtio-queue", version = "0.13.0" }
17-
vm-memory = "0.15.0"
17+
vm-memory = { workspace = true }
1818

1919
[dev-dependencies]
2020
virtio-queue = { path = "../virtio-queue", version = "0.13.0", features = ["test-utils"] }
21-
vm-memory = { version = "0.15.0", features = ["backend-mmap"] }
21+
vm-memory = { workspace = true, features = ["backend-mmap"] }

virtio-device/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ license = "Apache-2.0 OR MIT"
1010
edition = "2021"
1111

1212
[dependencies]
13-
vm-memory = "0.15.0"
13+
vm-memory = { workspace = true }
1414
log = "0.4.17"
1515
virtio-bindings = { path = "../virtio-bindings" }
1616
virtio-queue = { path = "../virtio-queue", version = "0.13.0"}
1717

1818
[dev-dependencies]
19-
vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] }
19+
vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] }

virtio-queue-ser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ versionize_derive = "0.1.3"
1919
# to prevent accidental changes to the serializer output in a patch release of
2020
# virtio-queue.
2121
virtio-queue = { path = "../virtio-queue", version = "=0.13.0" }
22-
vm-memory = "0.15.0"
22+
vm-memory = { workspace = true }
2323

2424
[dev-dependencies]
2525
virtio-queue = { path = "../virtio-queue", version = "=0.13.0", features = ["test-utils"] }

virtio-queue/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ edition = "2021"
1313
test-utils = []
1414

1515
[dependencies]
16-
vm-memory = "0.15.0"
17-
vmm-sys-util = "0.12.1"
16+
vm-memory = { workspace = true }
17+
vmm-sys-util = { workspace = true }
1818
log = "0.4.17"
1919
virtio-bindings = { path="../virtio-bindings", version = "0.2.3" }
2020

2121
[dev-dependencies]
2222
criterion = "0.5.1"
23-
vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] }
23+
vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] }
2424
memoffset = "0.9.0"
2525

2626
[[bench]]

virtio-vsock/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ edition = "2021"
1313
# The `path` part gets stripped when publishing the crate.
1414
virtio-queue = { path = "../virtio-queue", version = "0.13.0" }
1515
virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" }
16-
vm-memory = "0.15.0"
16+
vm-memory = { workspace = true }
1717

1818
[dev-dependencies]
1919
virtio-queue = { path = "../virtio-queue", version = "0.13.0", features = ["test-utils"] }
20-
vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] }
20+
vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] }

0 commit comments

Comments
 (0)