From 3c6c81dc020e1a40dced78dd9c0c6fe586be8e26 Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Mon, 15 Apr 2024 14:04:34 +0200 Subject: [PATCH] remove unused deps with cargo-machette --- Cargo.lock | 35 ----------------------------------- capture-server/Cargo.toml | 3 +-- capture/Cargo.toml | 3 --- hook-api/Cargo.toml | 1 - hook-common/Cargo.toml | 2 -- hook-janitor/Cargo.toml | 6 ------ hook-worker/Cargo.toml | 2 -- 7 files changed, 1 insertion(+), 51 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f611e2..8319b13 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -332,7 +332,6 @@ dependencies = [ "axum-test-helper", "base64", "bytes", - "dashmap", "envconfig", "flate2", "governor", @@ -350,9 +349,7 @@ dependencies = [ "time", "tokio", "tower-http", - "tower_governor", "tracing", - "tracing-subscriber", "uuid", ] @@ -362,7 +359,6 @@ version = "0.1.0" dependencies = [ "anyhow", "assert-json-diff", - "axum 0.7.4", "capture", "envconfig", "futures", @@ -1057,7 +1053,6 @@ dependencies = [ "hook-common", "http-body-util", "metrics", - "metrics-exporter-prometheus", "serde", "serde_derive", "serde_json", @@ -1079,10 +1074,8 @@ dependencies = [ "http 0.2.11", "metrics", "metrics-exporter-prometheus", - "regex", "reqwest", "serde", - "serde_derive", "serde_json", "sqlx", "thiserror", @@ -1102,21 +1095,15 @@ dependencies = [ "eyre", "futures", "hook-common", - "http-body-util", "metrics", - "metrics-exporter-prometheus", "rdkafka", - "serde", - "serde_derive", "serde_json", "sqlx", "thiserror", "time", "tokio", - "tower", "tracing", "tracing-subscriber", - "url", ] [[package]] @@ -1131,8 +1118,6 @@ dependencies = [ "http 0.2.11", "metrics", "reqwest", - "serde", - "serde_derive", "sqlx", "thiserror", "time", @@ -3192,26 +3177,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" -[[package]] -name = "tower_governor" -version = "0.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c6be418f6d18863291f0a7fa1da1de71495a19a54b5fb44969136f731a47e86" -dependencies = [ - "axum 0.6.20", - "forwarded-header-value", - "futures", - "futures-core", - "governor", - "http 0.2.11", - "pin-project", - "thiserror", - "tokio", - "tower", - "tower-layer", - "tracing", -] - [[package]] name = "tracing" version = "0.1.40" diff --git a/capture-server/Cargo.toml b/capture-server/Cargo.toml index e8aa559..fb051b7 100644 --- a/capture-server/Cargo.toml +++ b/capture-server/Cargo.toml @@ -4,7 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -axum = { workspace = true } capture = { path = "../capture" } envconfig = { workspace = true } opentelemetry = { version = "0.21.0", features = ["trace"]} @@ -24,4 +23,4 @@ once_cell = "1.18.0" rand = { workspace = true } rdkafka = { workspace = true } reqwest = "0.11.22" -serde_json = { workspace = true } \ No newline at end of file +serde_json = { workspace = true } diff --git a/capture/Cargo.toml b/capture/Cargo.toml index bd8f79f..c160cbe 100644 --- a/capture/Cargo.toml +++ b/capture/Cargo.toml @@ -10,11 +10,9 @@ axum = { version = "0.6.15" } # TODO: Bring up to date with the workspace. axum-client-ip = { workspace = true } tokio = { workspace = true } tracing = { workspace = true } -tracing-subscriber = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } governor = { workspace = true } -tower_governor = { workspace = true } time = { workspace = true } tower-http = { workspace = true } bytes = { workspace = true } @@ -35,7 +33,6 @@ redis = { version = "0.23.3", features = [ "cluster-async", ] } envconfig = { workspace = true } -dashmap = "5.5.3" [dev-dependencies] assert-json-diff = { workspace = true } diff --git a/hook-api/Cargo.toml b/hook-api/Cargo.toml index 96c897c..a596e87 100644 --- a/hook-api/Cargo.toml +++ b/hook-api/Cargo.toml @@ -12,7 +12,6 @@ eyre = { workspace = true } hook-common = { path = "../hook-common" } http-body-util = { workspace = true } metrics = { workspace = true } -metrics-exporter-prometheus = { workspace = true } serde = { workspace = true } serde_derive = { workspace = true } serde_json = { workspace = true } diff --git a/hook-common/Cargo.toml b/hook-common/Cargo.toml index ea7ce2f..8ccf8dd 100644 --- a/hook-common/Cargo.toml +++ b/hook-common/Cargo.toml @@ -13,9 +13,7 @@ http = { workspace = true } metrics = { workspace = true } metrics-exporter-prometheus = { workspace = true } reqwest = { workspace = true } -regex = { workspace = true } serde = { workspace = true } -serde_derive = { workspace = true } serde_json = { workspace = true } sqlx = { workspace = true } time = { workspace = true } diff --git a/hook-janitor/Cargo.toml b/hook-janitor/Cargo.toml index 96a80eb..a29a80c 100644 --- a/hook-janitor/Cargo.toml +++ b/hook-janitor/Cargo.toml @@ -12,18 +12,12 @@ envconfig = { workspace = true } eyre = { workspace = true } futures = { workspace = true } hook-common = { path = "../hook-common" } -http-body-util = { workspace = true } metrics = { workspace = true } -metrics-exporter-prometheus = { workspace = true } rdkafka = { workspace = true } -serde = { workspace = true } -serde_derive = { workspace = true } serde_json = { workspace = true } sqlx = { workspace = true } time = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } -tower = { workspace = true } tracing = { workspace = true } tracing-subscriber = { workspace = true } -url = { workspace = true } diff --git a/hook-worker/Cargo.toml b/hook-worker/Cargo.toml index 6ed5796..cbfc143 100644 --- a/hook-worker/Cargo.toml +++ b/hook-worker/Cargo.toml @@ -12,8 +12,6 @@ hook-common = { path = "../hook-common" } http = { version = "0.2" } metrics = { workspace = true } reqwest = { workspace = true } -serde = { workspace = true } -serde_derive = { workspace = true } sqlx = { workspace = true } time = { workspace = true } thiserror = { workspace = true }