diff --git a/Cargo.toml b/Cargo.toml index 8f745d71d..d5c8261e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -131,3 +131,4 @@ serde_json = "1.0.120" # other crates thiserror = "2.0.12" +zerocopy = { version = "0.8.24", default-features = false } diff --git a/hypervisor/Cargo.toml b/hypervisor/Cargo.toml index 6c18dd0b2..fed24b686 100644 --- a/hypervisor/Cargo.toml +++ b/hypervisor/Cargo.toml @@ -44,7 +44,7 @@ vm-memory = { workspace = true, features = [ "backend-mmap", ] } vmm-sys-util = { workspace = true, features = ["with-serde"] } -zerocopy = { version = "0.8.24", features = ["derive"] } +zerocopy = { workspace = true, features = ["derive"] } [target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86] default-features = false diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index a6b0314d9..147941530 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -84,4 +84,4 @@ vm-migration = { path = "../vm-migration" } vm-virtio = { path = "../vm-virtio" } vmm-sys-util = { workspace = true, features = ["with-serde"] } zbus = { version = "4.4.0", optional = true } -zerocopy = { version = "0.8.24", features = ["alloc", "derive"] } +zerocopy = { workspace = true, features = ["alloc", "derive"] }