From 66fec941eb3b232663ce178fd7589ab005b0c346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Ver=C5=A1i=C4=87?= Date: Mon, 16 Oct 2023 09:34:30 +0200 Subject: [PATCH] [refactor]: remove unused dependencies (#3992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marin Veršić --- Cargo.lock | 4 ---- Cargo.toml | 3 --- core/Cargo.toml | 1 - data_model/Cargo.toml | 4 +--- p2p/Cargo.toml | 1 - tools/swarm/Cargo.toml | 6 ++++-- 6 files changed, 5 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e42401fc1c..4d65b134304 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2905,7 +2905,6 @@ dependencies = [ "iroha_telemetry", "iroha_version", "iroha_wasm_codec", - "itertools 0.11.0", "once_cell", "parity-scale-codec", "parking_lot", @@ -2955,7 +2954,6 @@ version = "2.0.0-pre-rc.19" dependencies = [ "base64 0.21.4", "criterion", - "dashmap", "derive_more", "displaydoc", "getset", @@ -2973,7 +2971,6 @@ dependencies = [ "serde_with", "strum 0.25.0", "thiserror", - "tokio", "trybuild", "warp", ] @@ -3162,7 +3159,6 @@ name = "iroha_p2p" version = "2.0.0-pre-rc.19" dependencies = [ "aead", - "async-stream", "async-trait", "bytes", "derive_more", diff --git a/Cargo.toml b/Cargo.toml index 577997a76fd..65dd3671b33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,6 @@ manyhow = { version = "0.8.1", features = ["darling"] } darling = "0.20.3" futures = { version = "0.3.28", default-features = false } -async-stream = "0.3.5" tokio = "1.33.0" tokio-stream = "0.1.14" tokio-tungstenite = "0.20.1" @@ -79,7 +78,6 @@ once_cell = "1.18.0" tempfile = "3.8.0" path-absolutize = "3.1.1" pathdiff = "0.2.1" -itertools = "0.11.0" bytes = "1.5.0" vergen = { version = "8.2.5", default-features = false } @@ -102,7 +100,6 @@ duct = "0.13.6" criterion = "0.5.1" proptest = "1.3.1" -expect-test = "1.4.1" eyre = "0.6.8" color-eyre = "0.6.2" diff --git a/core/Cargo.toml b/core/Cargo.toml index 1e19e019008..ee25db8e235 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -68,7 +68,6 @@ displaydoc = { workspace = true } wasmtime = { workspace = true } parking_lot = { workspace = true, features = ["deadlock_detection"] } derive_more = { workspace = true } -itertools = { workspace = true } [dev-dependencies] criterion = { workspace = true } diff --git a/data_model/Cargo.toml b/data_model/Cargo.toml index 6d7203ec735..83551e7125d 100644 --- a/data_model/Cargo.toml +++ b/data_model/Cargo.toml @@ -21,7 +21,7 @@ default = ["std"] # Enable static linkage of the rust standard library. # Disabled for WASM interoperability, to reduce the binary size. # Please refer to https://docs.rust-embedded.org/book/intro/no-std.html -std = ["iroha_macro/std", "iroha_version/std", "iroha_crypto/std", "iroha_primitives/std", "thiserror", "displaydoc/std", "strum/std", "dashmap", "tokio"] +std = ["iroha_macro/std", "iroha_version/std", "iroha_crypto/std", "iroha_primitives/std", "thiserror", "displaydoc/std", "strum/std"] # Enable API for HTTP requests. Should be activated for HTTP clients http = ["std", "warp", "iroha_version/http"] # Replace structures and methods with FFI equivalents to facilitate dynamic linkage (mainly used in smartcontracts) @@ -41,8 +41,6 @@ iroha_version = { workspace = true, features = ["derive", "json", "scale"] } iroha_schema = { workspace = true } iroha_ffi = { workspace = true, optional = true } -dashmap = { workspace = true, optional = true } -tokio = { workspace = true, optional = true, features = ["sync", "rt-multi-thread"] } parity-scale-codec = { workspace = true, features = ["derive"] } derive_more = { workspace = true, features = ["as_ref", "display", "constructor", "from_str", "from", "into"] } serde = { workspace = true, features = ["derive"] } diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml index d28d34b35eb..ba85ca93604 100644 --- a/p2p/Cargo.toml +++ b/p2p/Cargo.toml @@ -21,7 +21,6 @@ iroha_data_model_derive = { workspace = true } rand = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread", "macros", "io-util", "net", "time"] } -async-stream = { workspace = true } futures = { workspace = true, features = ["alloc"] } async-trait = { workspace = true } parity-scale-codec = { workspace = true, features = ["derive"] } diff --git a/tools/swarm/Cargo.toml b/tools/swarm/Cargo.toml index 1500d1526b4..99b678aff4a 100644 --- a/tools/swarm/Cargo.toml +++ b/tools/swarm/Cargo.toml @@ -13,9 +13,7 @@ workspace = true iroha_crypto.workspace = true iroha_data_model.workspace = true iroha_primitives.workspace = true -iroha_config.workspace = true color-eyre.workspace = true -expect-test.workspace = true path-absolutize.workspace = true pathdiff.workspace = true owo-colors = { workspace = true, features = ["supports-colors"] } @@ -26,3 +24,7 @@ serde_json.workspace = true derive_more.workspace = true inquire.workspace = true +[dev-dependencies] +iroha_config.workspace = true + +expect-test = "1.4.1"