block_util: Remove unrequired serde usage from block_util

These structs are now versioned instead.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-05-21 12:41:07 +00:00 committed by Sebastien Boeuf
parent f583f993ee
commit 719e36049b
3 changed files with 2 additions and 10 deletions

3
Cargo.lock generated
View File

@ -133,9 +133,6 @@ dependencies = [
"libc",
"log",
"qcow",
"serde",
"serde_derive",
"serde_json",
"thiserror",
"versionize",
"versionize_derive",

View File

@ -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"

View File

@ -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,