From 85a879e9ec2cd631d566d999a6a4387cd50c195f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 23 Aug 2023 22:40:41 +0300 Subject: [PATCH] apps: don't use bincode --- Cargo.lock | 27 --------------------------- app/Cargo.toml | 1 - app/benches/db_bench.rs | 14 +------------- app_async/Cargo.toml | 1 - app_async/benches/async_bench.rs | 14 +------------- 5 files changed, 2 insertions(+), 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ebbd5f3..90000fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,25 +207,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" -[[package]] -name = "bincode" -version = "2.0.0-rc.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f11ea1a0346b94ef188834a65c068a03aec181c94896d481d7a0a40d85b0ce95" -dependencies = [ - "bincode_derive", - "serde", -] - -[[package]] -name = "bincode_derive" -version = "2.0.0-rc.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e30759b3b99a1b802a7a3aa21c85c3ded5c28e1c83170d82d70f08bbf7f3e4c" -dependencies = [ - "virtue", -] - [[package]] name = "bitflags" version = "1.3.2" @@ -311,7 +292,6 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" name = "chgk_ledb" version = "1.1.0" dependencies = [ - "bincode", "chgk_ledb_lib", "clap 4.3.16", "criterion 0.4.0", @@ -329,7 +309,6 @@ version = "1.1.0" dependencies = [ "async-compression 0.4.1", "async_zip", - "bincode", "chgk_ledb_lib", "clap 4.3.16", "criterion 0.5.1", @@ -1717,12 +1696,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "virtue" -version = "0.0.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dcc60c0624df774c82a0ef104151231d37da4962957d691c011c852b2473314" - [[package]] name = "walkdir" version = "2.3.3" diff --git a/app/Cargo.toml b/app/Cargo.toml index ef32ab3..3701aad 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -23,6 +23,5 @@ clap = { version = "4.2.7", features = ["derive"] } [dev-dependencies] criterion = "0.4.0" tempfile = "3.3" -bincode = "^2.0.0-rc.2" serde="1.0" serde_derive="1.0" diff --git a/app/benches/db_bench.rs b/app/benches/db_bench.rs index 8c49a84..eabf312 100644 --- a/app/benches/db_bench.rs +++ b/app/benches/db_bench.rs @@ -1,6 +1,5 @@ #[macro_use] extern crate criterion; -extern crate bincode; extern crate serde; extern crate serde_derive; extern crate serde_json; @@ -16,18 +15,7 @@ use tempfile::{tempdir, NamedTempFile}; use serde_derive::{Deserialize, Serialize}; -#[derive( - bincode::Encode, - bincode::Decode, - Clone, - Debug, - PartialEq, - Eq, - PartialOrd, - Ord, - Serialize, - Deserialize, -)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] struct TestData { num1: u64, num2: u64, diff --git a/app_async/Cargo.toml b/app_async/Cargo.toml index e974234..b9fd21b 100644 --- a/app_async/Cargo.toml +++ b/app_async/Cargo.toml @@ -33,7 +33,6 @@ futures = "0.3" [dev-dependencies] criterion = { version = "0.5.1", features = ["async_tokio"]} tempfile = "3.3" -bincode = "^2.0.0-rc.2" serde="1.0" serde_derive="1.0" futures = "0.3" diff --git a/app_async/benches/async_bench.rs b/app_async/benches/async_bench.rs index 0442a52..bb3f154 100644 --- a/app_async/benches/async_bench.rs +++ b/app_async/benches/async_bench.rs @@ -1,6 +1,5 @@ #[macro_use] extern crate criterion; -extern crate bincode; extern crate serde; extern crate serde_derive; extern crate tempfile; @@ -16,18 +15,7 @@ use tempfile::{tempdir, NamedTempFile}; use serde_derive::{Deserialize, Serialize}; -#[derive( - bincode::Encode, - bincode::Decode, - Clone, - Debug, - PartialEq, - Eq, - PartialOrd, - Ord, - Serialize, - Deserialize, -)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)] struct TestData { num1: u64, num2: u64,