diff --git a/Cargo.lock b/Cargo.lock index ba2ea6c69e2e..d418238c64ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1316,7 +1316,6 @@ dependencies = [ "derive_more", "displaydoc", "libc", - "net_gen", "serde", "serde_json", "thiserror", diff --git a/src/snapshot-editor/Cargo.toml b/src/snapshot-editor/Cargo.toml index 17f892aa71ea..747ad53edd3a 100644 --- a/src/snapshot-editor/Cargo.toml +++ b/src/snapshot-editor/Cargo.toml @@ -11,7 +11,6 @@ bench = false [dependencies] clap = { version = "4.4.6", features = ["derive", "string"] } -clap-num = "1.0.2" displaydoc = "0.2.4" libc = "0.2.148" snapshot = { path = "../snapshot" } @@ -19,3 +18,6 @@ thiserror = "1.0.49" vmm = { path = "../vmm" } fc_utils = { package = "utils", path = "../utils" } + +[target.'cfg(target_arch = "aarch64")'.dependencies] +clap-num = "1.0.2" diff --git a/src/utils/Cargo.toml b/src/utils/Cargo.toml index c00d850b37ea..578e1b50b339 100644 --- a/src/utils/Cargo.toml +++ b/src/utils/Cargo.toml @@ -19,7 +19,5 @@ versionize_derive = "0.1.5" vmm-sys-util = "0.11.0" vm-memory = { version = "0.12.0", features = ["backend-mmap", "backend-bitmap"] } -net_gen = { path = "../net_gen" } - [dev-dependencies] serde_json = "1.0.99" diff --git a/src/vmm/Cargo.toml b/src/vmm/Cargo.toml index 65b0f07d1c68..7987b14ffc97 100644 --- a/src/vmm/Cargo.toml +++ b/src/vmm/Cargo.toml @@ -28,7 +28,6 @@ userfaultfd = "0.7.0" versionize = "0.1.10" versionize_derive = "0.1.5" vm-allocator = "0.1.0" -vm-fdt = "0.2.0" vm-superio = "0.7.0" log = { version = "0.4.17", features = ["std", "serde"] } aes-gcm = { version = "0.10.1", default-features = false, features = ["aes"] } @@ -42,6 +41,9 @@ snapshot = { path = "../snapshot"} utils = { path = "../utils" } virtio_gen = { path = "../virtio_gen" } +[target.'cfg(target_arch = "aarch64")'.dependencies] +vm-fdt = "0.2.0" + [dev-dependencies] criterion = { version = "0.5.0", default-features = false } device_tree = "1.1.0"