From 24972310c2d0bbf7d2bfcbb83696f74ecb6fd640 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Tue, 26 Sep 2023 19:25:18 -0700 Subject: [PATCH] chore: remove unused dependencies --- Cargo.lock | 154 +++------------------------------------------ common/Cargo.toml | 1 - service/Cargo.toml | 14 ----- 3 files changed, 8 insertions(+), 161 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 36c10a87..015b8beb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -139,15 +139,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - [[package]] name = "anstream" version = "0.3.2" @@ -230,12 +221,6 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" -[[package]] -name = "ascii" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e" - [[package]] name = "ascii-canvas" version = "3.0.0" @@ -850,13 +835,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ "android-tzdata", - "iana-time-zone", - "js-sys", "num-traits", - "serde", - "time 0.1.43", - "wasm-bindgen", - "winapi", ] [[package]] @@ -982,19 +961,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" -[[package]] -name = "combine" -version = "3.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680" -dependencies = [ - "ascii", - "byteorder", - "either", - "memchr", - "unreachable", -] - [[package]] name = "concurrent-queue" version = "2.2.0" @@ -2274,16 +2240,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "graphql-parser" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2ebc8013b4426d5b81a4364c419a95ed0b404af2b82e2457de52d9348f0e474" -dependencies = [ - "combine", - "thiserror", -] - [[package]] name = "group" version = "0.13.0" @@ -2580,29 +2536,6 @@ dependencies = [ "tokio-native-tls", ] -[[package]] -name = "iana-time-zone" -version = "0.1.56" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - [[package]] name = "ident_case" version = "1.0.1" @@ -2673,7 +2606,6 @@ dependencies = [ "bs58 0.5.0", "eip-712-derive", "env_logger", - "ethereum-types", "ethers", "ethers-core", "faux", @@ -2681,7 +2613,7 @@ dependencies = [ "lazy_static", "log", "reqwest", - "secp256k1 0.27.0", + "secp256k1", "serde", "serde_json", "test-log", @@ -3059,17 +2991,13 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8603921e1f54ef386189335f288441af761e0fc61bcb552168d9cedfe63ebc70" dependencies = [ - "hyper", "indexmap 1.9.3", - "ipnet", "metrics", "metrics-util", "parking_lot", "portable-atomic 0.3.20", "quanta", "thiserror", - "tokio", - "tracing", ] [[package]] @@ -4541,31 +4469,13 @@ dependencies = [ "zeroize", ] -[[package]] -name = "secp256k1" -version = "0.20.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d03ceae636d0fed5bae6a7f4f664354c5f4fcedf6eef053fef17e49f837d0a" -dependencies = [ - "secp256k1-sys 0.4.2", -] - [[package]] name = "secp256k1" version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" dependencies = [ - "secp256k1-sys 0.8.1", -] - -[[package]] -name = "secp256k1-sys" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957da2573cde917463ece3570eab4a0b3f19de6f1646cde62e6fd3868f566036" -dependencies = [ - "cc", + "secp256k1-sys", ] [[package]] @@ -4704,37 +4614,24 @@ dependencies = [ "anyhow", "async-graphql", "async-graphql-axum", - "async-trait", "autometrics", "axum", - "bigdecimal", - "bs58 0.5.0", "cargo-husky", - "chrono", "clap", "confy", "dotenvy", - "eip-712-derive", - "env_logger", "ethereum-types", "ethers", - "ethers-contract", "ethers-core", "faux", - "graphql-parser", "hex", "hex-literal", "hyper", "indexer-common", - "lazy_static", - "libsecp256k1", "log", - "metrics-exporter-prometheus", "once_cell", "prometheus", - "regex", "reqwest", - "secp256k1 0.20.3", "serde", "serde_json", "sha3", @@ -4748,7 +4645,6 @@ dependencies = [ "tower-http 0.4.0", "tracing", "tracing-subscriber", - "url", "wiremock", ] @@ -4851,7 +4747,7 @@ dependencies = [ "num-bigint", "num-traits", "thiserror", - "time 0.3.21", + "time", ] [[package]] @@ -5018,7 +4914,7 @@ dependencies = [ "smallvec 1.10.0", "sqlformat", "thiserror", - "time 0.3.21", + "time", "tokio", "tokio-stream", "tracing", @@ -5104,7 +5000,7 @@ dependencies = [ "sqlx-core", "stringprep", "thiserror", - "time 0.3.21", + "time", "tracing", "whoami", ] @@ -5147,7 +5043,7 @@ dependencies = [ "sqlx-core", "stringprep", "thiserror", - "time 0.3.21", + "time", "tracing", "whoami", ] @@ -5170,7 +5066,7 @@ dependencies = [ "percent-encoding", "serde", "sqlx-core", - "time 0.3.21", + "time", "tracing", "url", ] @@ -5423,16 +5319,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "time" version = "0.3.21" @@ -5897,15 +5783,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" -[[package]] -name = "unreachable" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" -dependencies = [ - "void", -] - [[package]] name = "untrusted" version = "0.7.1" @@ -5973,12 +5850,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - [[package]] name = "wait-timeout" version = "0.2.0" @@ -6160,15 +6031,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" -dependencies = [ - "windows-targets 0.48.0", -] - [[package]] name = "windows-sys" version = "0.42.0" @@ -6413,7 +6275,7 @@ dependencies = [ "hmac 0.12.1", "pbkdf2 0.11.0", "sha1", - "time 0.3.21", + "time", "zstd", ] diff --git a/common/Cargo.toml b/common/Cargo.toml index aa9e5381..aa159a67 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -9,7 +9,6 @@ anyhow = "1.0.75" arc-swap = "1.6.0" bs58 = "0.5.0" eip-712-derive = { git = "https://github.com/graphprotocol/eip-712-derive" } -ethereum-types = "0.14.1" ethers = "2.0.10" ethers-core = "2.0.10" faux = { version = "0.1.10", optional = true } diff --git a/service/Cargo.toml b/service/Cargo.toml index 15608bc1..84c3eaaa 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -12,13 +12,10 @@ indexer-common = { path = "../common" } confy = "0.5.1" ethers-core = "2.0.0" ethers = "2.0.0" -ethers-contract = "2.0.0" dotenvy = "0.15" -regex = "1.7.1" log = "0.4.17" anyhow = "1.0.57" reqwest = "0.11.10" -async-trait = "0.1.53" tokio = { version = "1", features = ["rt", "macros", "sync", "full"] } tracing = "0.1.34" thiserror = "1.0.30" @@ -28,20 +25,11 @@ axum = "0.5" hyper = "0.14.27" tower = { version = "0.4", features = ["util", "timeout", "limit"] } tower-http = { version = "0.4.0", features = ["add-extension", "trace", "cors"] } -env_logger = "0.9.0" toml = "0.7.4" -graphql-parser = "0.4.0" -lazy_static = "1.2.0" once_cell = "1.17" -url = "2.3.1" -chrono = { version = "0.4", features = ["serde"] } async-graphql = "4.0.16" async-graphql-axum = "4.0.16" -bigdecimal = "0.3.0" -eip-712-derive = { git = "https://github.com/graphprotocol/eip-712-derive" } -libsecp256k1 = "0.7.0" sha3 = "0.10.6" -secp256k1 = { version = "0.20", features = ["recovery"] } tracing-subscriber = { version = "0.3", features = [ "env-filter", "ansi", @@ -51,10 +39,8 @@ tracing-subscriber = { version = "0.3", features = [ ] } autometrics = { version = "0.3.3", features = ["prometheus-exporter"] } clap = { version = "4.3.1", features = ["derive", "env"] } -metrics-exporter-prometheus = "0.11.0" prometheus = "0.13.3" hex = "0.4.3" -bs58 = "0.5.0" tap_core = "0.5.1" ethereum-types = "0.14.1" sqlx = { version = "0.7.1", features = ["postgres", "runtime-tokio", "bigdecimal", "rust_decimal", "time"] }