From 7d3919bf85202231e25ffab2704bd2896837c2f8 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Fri, 14 Jul 2023 13:17:23 +0200 Subject: [PATCH] remove unused dependencies (#3438) **Checklist** Complete the checklist (and note appropriate exceptions) before a final PR is raised. - [ ] Changes are compatible[^1] - [ ] Documentation[^2] completed - [ ] Performance impact assessed and acceptable - Tests added and passing[^3] - [ ] Unit Tests - [ ] Integration Tests - [ ] Manual Tests **Exceptions** *Note any exceptions here* **Notes** [^1]. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]. Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]. Tick whichever testing boxes are applicable. If you are adding Manual Tests: - please document the manual testing (extensively) in the Exceptions. - please raise a separate issue to automate the test and label it (or ask for it to be labeled) as `manual test` --- Cargo.lock | 1 - apollo-router/Cargo.toml | 1 - xtask/Cargo.lock | 46 ++-------------------------------------- xtask/Cargo.toml | 4 ---- 4 files changed, 2 insertions(+), 50 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 546b798597..6c89418307 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -284,7 +284,6 @@ dependencies = [ "async-trait", "atty", "axum", - "backtrace", "base64 0.20.0", "brotli", "buildstructor 0.5.3", diff --git a/apollo-router/Cargo.toml b/apollo-router/Cargo.toml index 512e8f3e26..e86ff364c8 100644 --- a/apollo-router/Cargo.toml +++ b/apollo-router/Cargo.toml @@ -66,7 +66,6 @@ async-compression = { version = "0.3.15", features = [ async-trait = "0.1.71" atty = "0.2.14" axum = { version = "0.6.18", features = ["headers", "json", "original-uri"] } -backtrace = "0.3.68" base64 = "0.20.0" buildstructor = "0.5.3" bytes = "1.4.0" diff --git a/xtask/Cargo.lock b/xtask/Cargo.lock index cda8c6d88b..e497b1765a 100644 --- a/xtask/Cargo.lock +++ b/xtask/Cargo.lock @@ -123,12 +123,6 @@ dependencies = [ "rustc-demangle", ] -[[package]] -name = "base64" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea22880d78093b0cbe17c89f64a7d457941e65759157ec6cb31a31d652b05e5" - [[package]] name = "base64" version = "0.21.2" @@ -331,15 +325,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-utils" -version = "0.8.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" -dependencies = [ - "cfg-if", -] - [[package]] name = "crypto-common" version = "0.1.6" @@ -1145,7 +1130,7 @@ version = "0.11.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" dependencies = [ - "base64 0.21.2", + "base64", "bytes", "encoding_rs", "futures-core", @@ -1244,7 +1229,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" dependencies = [ - "base64 0.21.2", + "base64", ] [[package]] @@ -1354,12 +1339,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_json_traversal" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8363f19aa1f3b2fc0bc9648fdde59c1074327a6f756fdd502fb1cfeb8179323c" - [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -1448,12 +1427,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - [[package]] name = "tar" version = "0.4.38" @@ -2027,7 +2000,6 @@ name = "xtask" version = "1.5.0" dependencies = [ "anyhow", - "base64 0.20.0", "camino", "cargo_metadata", "chrono", @@ -2046,15 +2018,12 @@ dependencies = [ "reqwest", "serde", "serde_json", - "serde_json_traversal", - "tap", "tar", "tempfile", "tinytemplate", "tokio", "walkdir", "which", - "zip", ] [[package]] @@ -2071,14 +2040,3 @@ name = "zeroize" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" - -[[package]] -name = "zip" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" -dependencies = [ - "byteorder", - "crc32fast", - "crossbeam-utils", -] diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 8f5bff50d1..21724b6a15 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -10,7 +10,6 @@ publish = false [dependencies] anyhow = "1" -base64 = "0.20" camino = "1" clap = { version = "4.3.11", features = ["derive"] } cargo_metadata = "0.15" @@ -35,14 +34,11 @@ reqwest = { version = "0.11", default-features = false, features = [ ] } serde = { version = "1.0.171", features = ["derive"] } serde_json = "1" -serde_json_traversal = "0.2" tar = "0.4" tempfile = "3" -tap = "1.0.1" tinytemplate = "1.2.1" tokio = "1.29.1" which = "4" -zip = { version = "0.6", default-features = false } walkdir = "2.3.3" [dev-dependencies]