From f33fe84909136932e9140bcfa9955020a282dc99 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 16 Dec 2024 20:13:58 +0100 Subject: [PATCH] chore(cargo): remove unused dependencies --- Cargo.lock | 82 +------------------------------------------ agent/Cargo.toml | 2 -- common/Cargo.toml | 13 ------- controller/Cargo.toml | 12 ------- 4 files changed, 1 insertion(+), 108 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f18a400..5edbcbd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1419,20 +1419,6 @@ dependencies = [ "thiserror 1.0.69", ] -[[package]] -name = "opentelemetry-appender-tracing" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5feffc321035ad94088a7e5333abb4d84a8726e54a802e736ce9dd7237e85b" -dependencies = [ - "log", - "opentelemetry", - "tracing", - "tracing-core", - "tracing-log", - "tracing-subscriber", -] - [[package]] name = "opentelemetry-otlp" version = "0.27.0" @@ -1470,23 +1456,6 @@ version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc1b6902ff63b32ef6c489e8048c5e253e2e4a803ea3ea7e783914536eb15c52" -[[package]] -name = "opentelemetry-stdout" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc8a298402aa5c260be90d10dc54b5a7d4e1025c354848f8e2c976d761351049" -dependencies = [ - "async-trait", - "chrono", - "futures-util", - "opentelemetry", - "opentelemetry_sdk", - "ordered-float", - "serde", - "serde_json", - "thiserror 1.0.69", -] - [[package]] name = "opentelemetry_sdk" version = "0.27.1" @@ -1508,15 +1477,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "ordered-float" -version = "4.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c65ee1f9701bf938026630b455d5315f490640234259037edb259798b3bcf85e" -dependencies = [ - "num-traits", -] - [[package]] name = "overload" version = "0.1.1" @@ -1565,8 +1525,6 @@ dependencies = [ "serde", "tokio", "tracing", - "tracing-chrome", - "tracing-subscriber", ] [[package]] @@ -1574,25 +1532,12 @@ name = "patagia-common" version = "0.1.0" dependencies = [ "anyhow", - "dropshot", - "http", "once_cell", "opentelemetry", - "opentelemetry-appender-tracing", "opentelemetry-otlp", "opentelemetry-semantic-conventions", - "opentelemetry-stdout", "opentelemetry_sdk", - "schemars", - "serde", - "slog", - "slog-async", - "tokio", - "tracing", - "tracing-chrome", - "tracing-core", "tracing-opentelemetry", - "tracing-slog", "tracing-subscriber", ] @@ -1603,14 +1548,6 @@ dependencies = [ "anyhow", "clap", "dropshot", - "http", - "once_cell", - "opentelemetry", - "opentelemetry-appender-tracing", - "opentelemetry-otlp", - "opentelemetry-semantic-conventions", - "opentelemetry-stdout", - "opentelemetry_sdk", "patagia-common", "schemars", "serde", @@ -1618,11 +1555,7 @@ dependencies = [ "slog-async", "tokio", "tracing", - "tracing-chrome", - "tracing-core", - "tracing-opentelemetry", "tracing-slog", - "tracing-subscriber", ] [[package]] @@ -1831,7 +1764,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2839,17 +2772,6 @@ dependencies = [ "syn", ] -[[package]] -name = "tracing-chrome" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf0a738ed5d6450a9fb96e86a23ad808de2b727fd1394585da5cdd6788ffe724" -dependencies = [ - "serde_json", - "tracing-core", - "tracing-subscriber", -] - [[package]] name = "tracing-core" version = "0.1.33" @@ -2909,11 +2831,9 @@ dependencies = [ "once_cell", "regex", "sharded-slab", - "smallvec", "thread_local", "tracing", "tracing-core", - "tracing-log", ] [[package]] diff --git a/agent/Cargo.toml b/agent/Cargo.toml index bd6a69b..7c58353 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -13,8 +13,6 @@ reqwest.workspace = true schemars.workspace = true serde.workspace = true tokio.workspace = true -tracing-chrome.workspace = true -tracing-subscriber.workspace = true tracing.workspace = true [package.metadata.cargo-machete] diff --git a/common/Cargo.toml b/common/Cargo.toml index 596a442..6d8fb50 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -7,23 +7,10 @@ license = "MPL-2.0" [dependencies] anyhow.workspace = true -dropshot.workspace = true -http.workspace = true once_cell.workspace = true -opentelemetry-appender-tracing.workspace = true opentelemetry-otlp.workspace = true opentelemetry_sdk.workspace = true opentelemetry-semantic-conventions.workspace = true -opentelemetry-stdout.workspace = true opentelemetry.workspace = true -schemars.workspace = true -serde.workspace = true -slog-async.workspace = true -slog.workspace = true -tokio.workspace = true -tracing-chrome.workspace = true -tracing-core.workspace = true tracing-opentelemetry.workspace = true -tracing-slog.workspace = true tracing-subscriber.workspace = true -tracing.workspace = true diff --git a/controller/Cargo.toml b/controller/Cargo.toml index 4acc0d1..9ce5c14 100644 --- a/controller/Cargo.toml +++ b/controller/Cargo.toml @@ -9,23 +9,11 @@ license = "MPL-2.0" anyhow.workspace = true clap.workspace = true dropshot.workspace = true -http.workspace = true -once_cell.workspace = true -opentelemetry-appender-tracing.workspace = true -opentelemetry-otlp.workspace = true -opentelemetry_sdk.workspace = true -opentelemetry-semantic-conventions.workspace = true -opentelemetry-stdout.workspace = true -opentelemetry.workspace = true patagia-common = { path = "../common" } schemars.workspace = true serde.workspace = true slog-async.workspace = true slog.workspace = true tokio.workspace = true -tracing-chrome.workspace = true -tracing-core.workspace = true -tracing-opentelemetry.workspace = true tracing-slog.workspace = true -tracing-subscriber.workspace = true tracing.workspace = true