From 7cee7a7e368a6e445903af1d59d92c680948ed2b Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Sun, 3 Nov 2024 12:40:16 -0800 Subject: [PATCH] Prune unused deps and run cargo-machete in ci --- .github/workflows/build.yml | 4 ++++ pingora-core/Cargo.toml | 2 -- pingora-openssl/Cargo.toml | 1 - pingora-proxy/Cargo.toml | 1 - tinyufo/Cargo.toml | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1504c010..ef076d8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,3 +51,7 @@ jobs: - name: Run cargo audit run: | [[ ${{ matrix.toolchain }} != 1.82.0 ]] || (cargo install cargo-audit && cargo audit) + + - name: Run cargo machete + run: | + [[ ${{ matrix.toolchain }} != 1.72.0 ]] || (cargo install cargo-machete && cargo machete) diff --git a/pingora-core/Cargo.toml b/pingora-core/Cargo.toml index 4bf108b0..5a4f6b59 100644 --- a/pingora-core/Cargo.toml +++ b/pingora-core/Cargo.toml @@ -35,7 +35,6 @@ bytes = { workspace = true } http = { workspace = true } log = { workspace = true } h2 = { workspace = true } -lru = { workspace = true } clap = { version = "3.2.25", features = ["derive"] } once_cell = { workspace = true } serde = { version = "1.0", features = ["derive"] } @@ -44,7 +43,6 @@ strum = "0.26.2" strum_macros = "0.26.2" libc = "0.2.70" chrono = { version = "~0.4.31", features = ["alloc"], default-features = false } -thread_local = "1.0" prometheus = "0.13" sentry = { version = "0.26", features = [ "backtrace", diff --git a/pingora-openssl/Cargo.toml b/pingora-openssl/Cargo.toml index adea1162..3ddb59e7 100644 --- a/pingora-openssl/Cargo.toml +++ b/pingora-openssl/Cargo.toml @@ -19,7 +19,6 @@ path = "src/lib.rs" [dependencies] openssl-sys = "0.9" openssl = { version = "0.10", features = ["vendored"] } -openssl-src = { version = "300", features = ["weak-crypto"] } tokio-openssl = { version = "0.6" } libc = "0.2.70" foreign-types = { version = "0.3"} diff --git a/pingora-proxy/Cargo.toml b/pingora-proxy/Cargo.toml index 4784dea2..731579df 100644 --- a/pingora-proxy/Cargo.toml +++ b/pingora-proxy/Cargo.toml @@ -20,7 +20,6 @@ path = "src/lib.rs" [dependencies] pingora-error = { version = "0.4.0", path = "../pingora-error" } pingora-core = { version = "0.4.0", path = "../pingora-core", default-features = false } -pingora-timeout = { version = "0.4.0", path = "../pingora-timeout" } pingora-cache = { version = "0.4.0", path = "../pingora-cache", default-features = false } tokio = { workspace = true, features = ["macros", "net"] } pingora-http = { version = "0.4.0", path = "../pingora-http" } diff --git a/tinyufo/Cargo.toml b/tinyufo/Cargo.toml index 9846c10d..335dfc5b 100644 --- a/tinyufo/Cargo.toml +++ b/tinyufo/Cargo.toml @@ -18,7 +18,6 @@ path = "src/lib.rs" [dependencies] ahash = { workspace = true } flurry = "0.5" -parking_lot = "0" crossbeam-queue = "0" crossbeam-skiplist = "0"