diff --git a/Cargo.toml b/Cargo.toml index 66a3ec0..1be2a25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,9 @@ members = [ "vhost", "vhost-user-backend", ] + +[workspace.dependencies] +virtio-bindings = "0.2.1" +virtio-queue = "0.13.0" +vm-memory = "0.15.0" +vmm-sys-util = "0.12.1" diff --git a/vhost-user-backend/Cargo.toml b/vhost-user-backend/Cargo.toml index 30be2f5..f4f149c 100644 --- a/vhost-user-backend/Cargo.toml +++ b/vhost-user-backend/Cargo.toml @@ -18,13 +18,13 @@ libc = "0.2.39" log = "0.4.17" userfaultfd = { version = "0.8.1", optional = true } vhost = { path = "../vhost", version = "0.12", features = ["vhost-user-backend"] } -virtio-bindings = "0.2.1" -virtio-queue = "0.13.0" -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } -vmm-sys-util = "0.12.1" +virtio-bindings = { workspace = true } +virtio-queue = { workspace = true } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic", "backend-bitmap"] } +vmm-sys-util = { workspace = true } [dev-dependencies] nix = { version = "0.29", features = ["fs"] } vhost = { path = "../vhost", version = "0.12", features = ["test-utils", "vhost-user-frontend", "vhost-user-backend"] } -vm-memory = { version = "0.15.0", features = ["backend-mmap", "backend-atomic"] } +vm-memory = { workspace = true, features = ["backend-mmap", "backend-atomic"] } tempfile = "3.2.0" diff --git a/vhost/Cargo.toml b/vhost/Cargo.toml index 1f766be..c7f53ae 100644 --- a/vhost/Cargo.toml +++ b/vhost/Cargo.toml @@ -32,8 +32,8 @@ bitflags = "2.4" libc = "0.2.39" uuid = { version = "1.8.0", features=["v4", "fast-rng", "macro-diagnostics"] } -vmm-sys-util = "0.12.1" -vm-memory = { version = "0.15.0", features=["backend-mmap"] } +vmm-sys-util = { workspace = true } +vm-memory = { workspace = true, features=["backend-mmap"] } [dev-dependencies] tempfile = "3.2.0"