From 285804e1d53828734c45f8c4d96ec81dbd471a3a Mon Sep 17 00:00:00 2001 From: Youngjoon Lee Date: Mon, 25 Sep 2023 17:26:21 +0900 Subject: [PATCH] Remove unnecessary dependencies (#433) --- 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, 3 insertions(+), 22 deletions(-) diff --git a/mixnet/protocol/Cargo.toml b/mixnet/protocol/Cargo.toml index e21c7ff4..c0db927b 100644 --- a/mixnet/protocol/Cargo.toml +++ b/mixnet/protocol/Cargo.toml @@ -9,5 +9,5 @@ edition = "2021" tokio = { version = "1.32", features = ["sync", "net"] } sphinx-packet = "0.1.0" futures = "0.3" -tokio-util = { version = "0.7", features = ["io", "io-util"] } +tokio-util = { version = "0.7", features = ["io", "io-util"] } thiserror = "1" diff --git a/nomos-core/Cargo.toml b/nomos-core/Cargo.toml index e671b14b..702db6d1 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 803b2b68..8ed21ce0 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 1797d9fd..07baca1d 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 b6f8fd6c..45446fda 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 3e410aa7..458b111d 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 47e9a149..9d3ceb93 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 44188156..3d1446f7 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 f86d63dd..22e7f695 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 13f15958..a13960a9 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 022492b7..5702f496 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 }