diff --git a/Cargo.lock b/Cargo.lock index 9fef4faf1..975ef5190 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -133,9 +133,6 @@ dependencies = [ "libc", "log", "qcow", - "serde", - "serde_derive", - "serde_json", "thiserror", "versionize", "versionize_derive", diff --git a/block_util/Cargo.toml b/block_util/Cargo.toml index ebc2779bf..ce56a2d98 100644 --- a/block_util/Cargo.toml +++ b/block_util/Cargo.toml @@ -13,9 +13,6 @@ io-uring = ">=0.4.0" libc = "0.2.94" log = "0.4.14" qcow = { path = "../qcow" } -serde = ">=1.0.27" -serde_derive = ">=1.0.27" -serde_json = ">=1.0.9" thiserror = "1.0" versionize = "0.1.6" versionize_derive = "0.1.4" diff --git a/block_util/src/lib.rs b/block_util/src/lib.rs index 1333574f6..040bca1f9 100644 --- a/block_util/src/lib.rs +++ b/block_util/src/lib.rs @@ -10,8 +10,6 @@ #[macro_use] extern crate log; -#[macro_use] -extern crate serde_derive; pub mod async_io; pub mod fixed_vhd_async; @@ -371,7 +369,7 @@ impl Request { } } -#[derive(Copy, Clone, Debug, Default, Deserialize, Serialize, Versionize)] +#[derive(Copy, Clone, Debug, Default, Versionize)] #[repr(C, packed)] pub struct VirtioBlockConfig { pub capacity: u64, @@ -396,7 +394,7 @@ pub struct VirtioBlockConfig { } unsafe impl ByteValued for VirtioBlockConfig {} -#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize, Versionize)] +#[derive(Copy, Clone, Debug, Default, Versionize)] #[repr(C, packed)] pub struct VirtioBlockGeometry { pub cylinders: u16,