diff --git a/Cargo.toml b/Cargo.toml index d52f33ee..66c10d18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,7 @@ members = [ [profile.bench] lto = true codegen-units = 1 + +[workspace.dependencies] +vm-memory = "0.15.0" +vmm-sys-util = "0.12.1" diff --git a/virtio-blk/Cargo.toml b/virtio-blk/Cargo.toml index f31dc734..56c9599b 100644 --- a/virtio-blk/Cargo.toml +++ b/virtio-blk/Cargo.toml @@ -13,13 +13,13 @@ edition = "2021" backend-stdio = [] [dependencies] -vm-memory = "0.15.0" -vmm-sys-util = "0.12.1" +vm-memory = { workspace = true } +vmm-sys-util = { workspace = true } log = "0.4.17" virtio-queue = { path = "../virtio-queue" } virtio-device = { path = "../virtio-device" } virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" } [dev-dependencies] -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] } virtio-queue = { path = "../virtio-queue", features = ["test-utils"] } diff --git a/virtio-console/Cargo.toml b/virtio-console/Cargo.toml index 2db0b52a..7b09de12 100644 --- a/virtio-console/Cargo.toml +++ b/virtio-console/Cargo.toml @@ -14,8 +14,8 @@ edition = "2021" [dependencies] virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" } virtio-queue = { path = "../virtio-queue", version = "0.13.0" } -vm-memory = "0.15.0" +vm-memory = { workspace = true } [dev-dependencies] virtio-queue = { path = "../virtio-queue", version = "0.13.0", features = ["test-utils"] } -vm-memory = { version = "0.15.0", features = ["backend-mmap"] } +vm-memory = { workspace = true, features = ["backend-mmap"] } diff --git a/virtio-device/Cargo.toml b/virtio-device/Cargo.toml index ebe470f3..0503ad6b 100644 --- a/virtio-device/Cargo.toml +++ b/virtio-device/Cargo.toml @@ -10,10 +10,10 @@ license = "Apache-2.0 OR MIT" edition = "2021" [dependencies] -vm-memory = "0.15.0" +vm-memory = { workspace = true } log = "0.4.17" virtio-bindings = { path = "../virtio-bindings" } virtio-queue = { path = "../virtio-queue", version = "0.13.0"} [dev-dependencies] -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] } diff --git a/virtio-queue-ser/Cargo.toml b/virtio-queue-ser/Cargo.toml index 0132febc..4fc4f1f3 100644 --- a/virtio-queue-ser/Cargo.toml +++ b/virtio-queue-ser/Cargo.toml @@ -19,7 +19,7 @@ versionize_derive = "0.1.3" # to prevent accidental changes to the serializer output in a patch release of # virtio-queue. virtio-queue = { path = "../virtio-queue", version = "=0.13.0" } -vm-memory = "0.15.0" +vm-memory = { workspace = true } [dev-dependencies] virtio-queue = { path = "../virtio-queue", version = "=0.13.0", features = ["test-utils"] } diff --git a/virtio-queue/Cargo.toml b/virtio-queue/Cargo.toml index 0ee38e66..7f3522f4 100644 --- a/virtio-queue/Cargo.toml +++ b/virtio-queue/Cargo.toml @@ -13,14 +13,14 @@ edition = "2021" test-utils = [] [dependencies] -vm-memory = "0.15.0" -vmm-sys-util = "0.12.1" +vm-memory = { workspace = true } +vmm-sys-util = { workspace = true } log = "0.4.17" virtio-bindings = { path="../virtio-bindings", version = "0.2.3" } [dev-dependencies] criterion = "0.5.1" -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] } memoffset = "0.9.0" [[bench]] diff --git a/virtio-vsock/Cargo.toml b/virtio-vsock/Cargo.toml index b00d7245..4031b8fb 100644 --- a/virtio-vsock/Cargo.toml +++ b/virtio-vsock/Cargo.toml @@ -13,8 +13,8 @@ edition = "2021" # The `path` part gets stripped when publishing the crate. virtio-queue = { path = "../virtio-queue", version = "0.13.0" } virtio-bindings = { path = "../virtio-bindings", version = "0.2.3" } -vm-memory = "0.15.0" +vm-memory = { workspace = true } [dev-dependencies] virtio-queue = { path = "../virtio-queue", version = "0.13.0", features = ["test-utils"] } -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] }