From 51092e4d3502a8066d49888d2853c6fa1d7b29cb Mon Sep 17 00:00:00 2001 From: Max Kaplan <1482859+CapCap@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:10:42 -0700 Subject: [PATCH] Remove unused deps (#404) --- rust/Cargo.lock | 226 ++----------------------------- rust/processor/Cargo.toml | 4 - rust/server-framework/Cargo.toml | 1 - 3 files changed, 11 insertions(+), 220 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index acb7e643c..d77bc100c 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -185,19 +185,6 @@ dependencies = [ "futures-core", ] -[[package]] -name = "async-compression" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b74f44609f0f91493e3082d3734d98497e094777144380ea4db9f9905dd5b6" -dependencies = [ - "flate2", - "futures-core", - "memchr", - "pin-project-lite", - "tokio", -] - [[package]] name = "async-mutex" version = "1.4.0" @@ -647,20 +634,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "diesel-async" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acada1517534c92d3f382217b485db8a8638f111b0e3f2a2a8e26165050f77be" -dependencies = [ - "async-trait", - "diesel", - "futures-util", - "scoped-futures", - "tokio", - "tokio-postgres", -] - [[package]] name = "diesel-async" version = "0.4.1" @@ -675,18 +648,6 @@ dependencies = [ "tokio-postgres", ] -[[package]] -name = "diesel_async_migrations" -version = "0.11.0" -source = "git+https://github.com/niroco/diesel_async_migrations?rev=11f331b73c5cfcc894380074f748d8fda710ac12#11f331b73c5cfcc894380074f748d8fda710ac12" -dependencies = [ - "diesel", - "diesel-async 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "macros", - "scoped-futures", - "tracing", -] - [[package]] name = "diesel_derives" version = "2.1.2" @@ -1028,49 +989,6 @@ dependencies = [ "slab", ] -[[package]] -name = "gcemeta" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47d460327b24cc34c86d53d60a90e9e6044817f7906ebd9baa5c3d0ee13e1ecf" -dependencies = [ - "bytes", - "hyper", - "serde", - "serde_json", - "thiserror", - "tokio", - "tracing", -] - -[[package]] -name = "gcloud-sdk" -version = "0.20.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b46b7a2dbf38a2c5558ebc6b9053ca468155e95db4da6f5f376e5608dd26ee7" -dependencies = [ - "async-trait", - "chrono", - "futures", - "gcemeta", - "hyper", - "jsonwebtoken", - "once_cell", - "prost 0.11.9", - "prost-types 0.11.9", - "reqwest", - "secret-vault-value", - "serde", - "serde_json", - "tokio", - "tonic 0.9.2", - "tower", - "tower-layer", - "tower-util", - "tracing", - "url", -] - [[package]] name = "generic-array" version = "0.14.7" @@ -1143,7 +1061,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a3b24a3f57be08afc02344e693afb55e48172c9c2ab86ff3fdb8efff550e4b9" dependencies = [ "prost 0.11.9", - "prost-types 0.11.9", + "prost-types", "tonic 0.9.2", ] @@ -1170,7 +1088,7 @@ dependencies = [ "google-cloud-gax", "google-cloud-googleapis", "google-cloud-token", - "prost-types 0.11.9", + "prost-types", "thiserror", "tokio", "tokio-util", @@ -1336,20 +1254,6 @@ dependencies = [ "want", ] -[[package]] -name = "hyper-rustls" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d78e1e73ec14cf7375674f74d7dde185c8206fd9dea6fb6295e8a98098aaa97" -dependencies = [ - "futures-util", - "http", - "hyper", - "rustls 0.21.7", - "tokio", - "tokio-rustls 0.24.1", -] - [[package]] name = "hyper-timeout" version = "0.4.1" @@ -1670,15 +1574,6 @@ version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" -[[package]] -name = "macros" -version = "0.1.0" -source = "git+https://github.com/niroco/diesel_async_migrations?rev=11f331b73c5cfcc894380074f748d8fda710ac12#11f331b73c5cfcc894380074f748d8fda710ac12" -dependencies = [ - "proc-macro2", - "quote", -] - [[package]] name = "matchers" version = "0.1.0" @@ -2032,33 +1927,13 @@ dependencies = [ "siphasher", ] -[[package]] -name = "pin-project" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ef0f924a5ee7ea9cbcea77529dba45f8a9ba9f622419fe3386ca581a3ae9d5a" -dependencies = [ - "pin-project-internal 0.4.30", -] - [[package]] name = "pin-project" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "030ad2bc4db10a8944cb0d837f158bdfec4d4a4873ab701a95046770d11f8842" dependencies = [ - "pin-project-internal 1.1.2", -] - -[[package]] -name = "pin-project-internal" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "851c8d0ce9bebe43790dedfc86614c23494ac9f423dd618d3a61fc693eafe61e" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "pin-project-internal", ] [[package]] @@ -2194,20 +2069,17 @@ dependencies = [ "aptos-moving-average", "aptos-protos", "async-trait", - "base64 0.13.1", "bcs", "bigdecimal", "chrono", "clap", "diesel", - "diesel-async 0.4.1 (git+https://github.com/weiznich/diesel_async.git?rev=d02798c67065d763154d7272dd0c09b39757d0f2)", - "diesel_async_migrations", + "diesel-async", "diesel_migrations", "enum_dispatch", "field_count", "futures", "futures-util", - "gcloud-sdk", "google-cloud-googleapis", "google-cloud-pubsub", "hex", @@ -2221,7 +2093,6 @@ dependencies = [ "postgres-native-tls", "prometheus", "prost 0.12.3", - "prost-types 0.12.3", "regex", "serde", "serde_json", @@ -2307,15 +2178,6 @@ dependencies = [ "prost 0.11.9", ] -[[package]] -name = "prost-types" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" -dependencies = [ - "prost 0.12.3", -] - [[package]] name = "protobuf" version = "2.28.0" @@ -2464,7 +2326,6 @@ version = "0.11.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e9ad3fe7488d7e34558a2033d45a0c90b72d97b4f80705666fea71472e2e6a1" dependencies = [ - "async-compression", "base64 0.21.2", "bytes", "cookie", @@ -2476,25 +2337,20 @@ dependencies = [ "http", "http-body", "hyper", - "hyper-rustls", "hyper-tls", "ipnet", "js-sys", "log", "mime", - "mime_guess", "native-tls", "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.7", - "rustls-pemfile 1.0.3", "serde", "serde_json", "serde_urlencoded", "tokio", "tokio-native-tls", - "tokio-rustls 0.24.1", "tokio-util", "tower-service", "url", @@ -2502,7 +2358,6 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots 0.25.2", "winreg", ] @@ -2644,18 +2499,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "rustls-native-certs" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" -dependencies = [ - "openssl-probe", - "rustls-pemfile 1.0.3", - "schannel", - "security-framework", -] - [[package]] name = "rustls-native-certs" version = "0.7.0" @@ -2778,19 +2621,6 @@ dependencies = [ "untrusted 0.7.1", ] -[[package]] -name = "secret-vault-value" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eddaf2631e82016a3262ce75575ec245ceef9a7115ddf8576851302efe6bdece" -dependencies = [ - "prost 0.11.9", - "prost-types 0.11.9", - "serde", - "serde_json", - "zeroize", -] - [[package]] name = "security-framework" version = "2.9.1" @@ -2888,7 +2718,6 @@ dependencies = [ "async-trait", "backtrace", "clap", - "futures", "prometheus", "serde", "serde_yaml", @@ -3319,7 +3148,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" dependencies = [ - "pin-project 1.1.2", + "pin-project", "rand", "tokio", ] @@ -3447,9 +3276,8 @@ dependencies = [ "hyper", "hyper-timeout", "percent-encoding", - "pin-project 1.1.2", + "pin-project", "prost 0.11.9", - "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.3", "tokio", "tokio-rustls 0.24.1", @@ -3458,7 +3286,7 @@ dependencies = [ "tower-layer", "tower-service", "tracing", - "webpki-roots 0.23.1", + "webpki-roots", ] [[package]] @@ -3479,9 +3307,9 @@ dependencies = [ "hyper", "hyper-timeout", "percent-encoding", - "pin-project 1.1.2", + "pin-project", "prost 0.12.3", - "rustls-native-certs 0.7.0", + "rustls-native-certs", "rustls-pemfile 2.1.2", "rustls-pki-types", "tokio", @@ -3503,7 +3331,7 @@ dependencies = [ "futures-core", "futures-util", "indexmap 1.9.3", - "pin-project 1.1.2", + "pin-project", "pin-project-lite", "rand", "slab", @@ -3526,18 +3354,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" -[[package]] -name = "tower-util" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1093c19826d33807c72511e68f73b4a0469a3f22c2bd5f7d5212178b4b89674" -dependencies = [ - "futures-core", - "futures-util", - "pin-project 0.4.30", - "tower-service", -] - [[package]] name = "tracing" version = "0.1.37" @@ -3773,7 +3589,7 @@ dependencies = [ "mime_guess", "multer", "percent-encoding", - "pin-project 1.1.2", + "pin-project", "rustls-pemfile 1.0.3", "scoped-tls", "serde", @@ -3902,12 +3718,6 @@ dependencies = [ "rustls-webpki 0.100.1", ] -[[package]] -name = "webpki-roots" -version = "0.25.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" - [[package]] name = "whoami" version = "1.4.1" @@ -4141,20 +3951,6 @@ name = "zeroize" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" -dependencies = [ - "zeroize_derive", -] - -[[package]] -name = "zeroize_derive" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.48", -] [[package]] name = "zstd" diff --git a/rust/processor/Cargo.toml b/rust/processor/Cargo.toml index 96628d6b3..84d2ee3f1 100644 --- a/rust/processor/Cargo.toml +++ b/rust/processor/Cargo.toml @@ -18,20 +18,17 @@ anyhow = { workspace = true } aptos-moving-average = { workspace = true } aptos-protos = { workspace = true } async-trait = { workspace = true } -base64 = { workspace = true } bcs = { workspace = true } bigdecimal = { workspace = true } chrono = { workspace = true } clap = { workspace = true } diesel = { workspace = true } diesel-async = { workspace = true } -diesel_async_migrations = { workspace = true } diesel_migrations = { workspace = true } enum_dispatch = { workspace = true } field_count = { workspace = true } futures = { workspace = true } futures-util = { workspace = true } -gcloud-sdk = { workspace = true } google-cloud-googleapis = { workspace = true } google-cloud-pubsub = { workspace = true } hex = { workspace = true } @@ -42,7 +39,6 @@ num_cpus = { workspace = true } once_cell = { workspace = true } prometheus = { workspace = true } prost = { workspace = true } -prost-types = { workspace = true } regex = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } diff --git a/rust/server-framework/Cargo.toml b/rust/server-framework/Cargo.toml index 7fb13c51f..8412ea436 100644 --- a/rust/server-framework/Cargo.toml +++ b/rust/server-framework/Cargo.toml @@ -16,7 +16,6 @@ anyhow = { workspace = true } async-trait = { workspace = true } backtrace = { workspace = true } clap = { workspace = true } -futures = { workspace = true } prometheus = { workspace = true } serde = { workspace = true } serde_yaml = { workspace = true }