From a8d98108ec6e01f4c9d2a5f55c1b98b3e05c2321 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee Date: Fri, 22 Sep 2023 13:24:38 +0900 Subject: [PATCH] Remove unnecessary dependencies --- mixnet/protocol/Cargo.toml | 2 -- nomos-core/Cargo.toml | 1 - nomos-libp2p/Cargo.toml | 1 - nomos-services/consensus/Cargo.toml | 1 - nomos-services/http/Cargo.toml | 3 --- nomos-services/mempool/Cargo.toml | 1 - nomos-services/metrics/Cargo.toml | 5 +---- nomos-services/network/Cargo.toml | 3 --- nomos-services/storage/Cargo.toml | 3 +-- simulations/Cargo.toml | 4 ---- tests/Cargo.toml | 1 - 11 files changed, 2 insertions(+), 23 deletions(-) diff --git a/mixnet/protocol/Cargo.toml b/mixnet/protocol/Cargo.toml index 13387034d..e83ac62fc 100644 --- a/mixnet/protocol/Cargo.toml +++ b/mixnet/protocol/Cargo.toml @@ -8,5 +8,3 @@ edition = "2021" [dependencies] tokio = "1.32" sphinx-packet = "0.1.0" -futures = "0.3" -tokio-util = {version = "0.7", features = ["io", "io-util"] } \ No newline at end of file diff --git a/nomos-core/Cargo.toml b/nomos-core/Cargo.toml index e671b14be..702db6d1c 100644 --- a/nomos-core/Cargo.toml +++ b/nomos-core/Cargo.toml @@ -23,7 +23,6 @@ indexmap = { version = "1.9", features = ["serde"] } [dev-dependencies] rand = "0.8" -tokio = { version = "1.23", features = ["macros", "rt"] } [features] diff --git a/nomos-libp2p/Cargo.toml b/nomos-libp2p/Cargo.toml index 803b2b686..8ed21ce0b 100644 --- a/nomos-libp2p/Cargo.toml +++ b/nomos-libp2p/Cargo.toml @@ -26,6 +26,5 @@ thiserror = "1.0.40" tracing = "0.1" [dev-dependencies] -env_logger = "0.10.0" serde_json = "1.0.99" tokio = { version = "1", features = ["time"] } diff --git a/nomos-services/consensus/Cargo.toml b/nomos-services/consensus/Cargo.toml index 1797d9fdc..07baca1d6 100644 --- a/nomos-services/consensus/Cargo.toml +++ b/nomos-services/consensus/Cargo.toml @@ -7,7 +7,6 @@ edition = "2021" [dependencies] async-trait = "0.1" -async-stream = "0.3" bytes = "1.3" chrono = "0.4" consensus-engine = { path = "../../consensus-engine", features = ["serde"] } diff --git a/nomos-services/http/Cargo.toml b/nomos-services/http/Cargo.toml index b6f8fd6c8..45446fdaa 100644 --- a/nomos-services/http/Cargo.toml +++ b/nomos-services/http/Cargo.toml @@ -32,16 +32,13 @@ serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0", optional = true } thiserror = "1" tracing = "0.1" -tracing-appender = "0.2" tracing-subscriber = { version = "0.3", features = ["json"] } -tracing-gelf = "0.7" tower = { version = "0.4", optional = true } tower-http = { version = "0.3", features = ["cors", "trace"] } tokio = { version = "1", features = ["sync", "macros"] } tower-service = "0.3.2" [dev-dependencies] -metrics = { path = "../metrics", features = ["gql"] } once_cell = "1.17" [features] diff --git a/nomos-services/mempool/Cargo.toml b/nomos-services/mempool/Cargo.toml index 3e410aa70..458b111d9 100644 --- a/nomos-services/mempool/Cargo.toml +++ b/nomos-services/mempool/Cargo.toml @@ -8,7 +8,6 @@ edition = "2021" [dependencies] async-trait = "0.1" bincode = { version = "2.0.0-rc.2", features = ["serde"] } -chrono = "0.4" futures = "0.3" linked-hash-map = { version = "0.5.6", optional = true } nomos-network = { path = "../network" } diff --git a/nomos-services/metrics/Cargo.toml b/nomos-services/metrics/Cargo.toml index 47e9a149d..9d3ceb931 100644 --- a/nomos-services/metrics/Cargo.toml +++ b/nomos-services/metrics/Cargo.toml @@ -11,7 +11,6 @@ required-features = ["gql"] [dependencies] axum = { version = "0.6", optional = true } async-graphql = { version = "5", optional = true, features = ["tracing"] } -async-graphql-axum = { version = "5", optional = true } async-trait = "0.1" bytes = "1.3" clap = { version = "4", features = ["derive", "env"], optional = true } @@ -25,13 +24,11 @@ serde = { version = "1", features = ["derive"] } serde_json = "1" tokio = { version = "1", features = ["sync", "macros", "time"] } tracing = "0.1" -tracing-appender = "0.2" tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] } -tracing-gelf = "0.7" tower-http = { version = "0.3", features = ["cors", "trace"], optional = true } thiserror = "1" futures = "0.3" [features] default = [] -gql = ["clap", "axum", "async-graphql", "async-graphql-axum", "tower-http", "nomos-http/gql"] +gql = ["clap", "axum", "async-graphql", "tower-http", "nomos-http/gql"] diff --git a/nomos-services/network/Cargo.toml b/nomos-services/network/Cargo.toml index 441881568..3d1446f72 100644 --- a/nomos-services/network/Cargo.toml +++ b/nomos-services/network/Cargo.toml @@ -21,9 +21,6 @@ thiserror = "1.0" tracing = "0.1" rand = { version = "0.7.3", optional = true } waku-bindings = { version = "0.1.1", optional = true } -tracing-appender = "0.2" -tracing-subscriber = { version = "0.3", features = ["json"] } -tracing-gelf = "0.7" futures = "0.3" parking_lot = "0.12" nomos-core = { path = "../../nomos-core" } diff --git a/nomos-services/storage/Cargo.toml b/nomos-services/storage/Cargo.toml index f86d63dd4..22e7f6953 100644 --- a/nomos-services/storage/Cargo.toml +++ b/nomos-services/storage/Cargo.toml @@ -16,10 +16,9 @@ thiserror = "1.0" tracing = "0.1" [dev-dependencies] -tempfile = "3.3" tokio = { version = "1", features = ["sync", "macros", "time"] } [features] default = [] mock = [] -sled-backend = ["sled"] \ No newline at end of file +sled-backend = ["sled"] diff --git a/simulations/Cargo.toml b/simulations/Cargo.toml index 13f159584..a13960a96 100644 --- a/simulations/Cargo.toml +++ b/simulations/Cargo.toml @@ -11,7 +11,6 @@ path = "src/bin/app/main.rs" [dependencies] anyhow = "1" -arc-swap = "1.6" bls-signatures = "0.14" csv = "1" clap = { version = "4", features = ["derive"] } @@ -42,8 +41,5 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "tracing-log"] [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2", features = ["js"] } -[dev-dependencies] -tempfile = "3.4" - [features] polars = ["dep:polars"] diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 022492b76..5702f496a 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -22,7 +22,6 @@ mixnet-client = { path = "../mixnet/client" } mixnet-topology = { path = "../mixnet/topology" } # Using older versions, since `mixnet-*` crates depend on `rand` v0.7.3. rand = "0.7.3" -rand_xoshiro = "0.6" once_cell = "1" secp256k1 = { version = "0.26", features = ["rand"] } waku-bindings = { version = "0.1.1", optional = true }