From 6f56ef9a366275a118798ec6ad13488304a5186b Mon Sep 17 00:00:00 2001 From: Jinank Jain Date: Tue, 3 Jun 2025 10:53:51 +0530 Subject: [PATCH] misc: Move zerocopy to workspace dependencies Since it is used by multiple components at this point, it is better to move it to workspace level dependency. Signed-off-by: Jinank Jain --- Cargo.toml | 1 + hypervisor/Cargo.toml | 2 +- vmm/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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"] }