From 04bbfd86ea87f581c4de4ec9dba3e882080080fa Mon Sep 17 00:00:00 2001 From: Augusto Hack Date: Fri, 1 Nov 2024 11:17:47 +0100 Subject: [PATCH] remove unused deps (#400) --- Cargo.lock | 69 ---------------------------------- Cargo.toml | 4 -- groth16-framework/Cargo.toml | 5 +-- inspect/Cargo.toml | 6 --- mp2-common/Cargo.toml | 4 -- mp2-test/Cargo.toml | 2 - mp2-v1/Cargo.toml | 7 +--- parsil/Cargo.toml | 3 -- recursion-framework/Cargo.toml | 4 +- verifiable-db/Cargo.toml | 4 +- 10 files changed, 5 insertions(+), 103 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3a97a48c0..a11b5087d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2919,14 +2919,11 @@ dependencies = [ "itertools 0.12.1", "log", "mp2_common", - "mp2_test", "plonky2", - "plonky2_ecgfp5", "plonky2x", "rand", "recursion_framework", "revm", - "rlp", "serde", "serde_json", "serial_test 3.1.1", @@ -3366,21 +3363,16 @@ name = "inspect" version = "0.1.0" dependencies = [ "anyhow", - "bb8", - "bb8-postgres", "clap", "colored", "dialoguer", "hex", "itertools 0.12.1", "mp2_v1", - "postgres-types", "ryhope", "serde", - "serde_json", "tabled", "tokio", - "tokio-postgres", ] [[package]] @@ -3724,7 +3716,6 @@ dependencies = [ "alloy", "anyhow", "bincode", - "csv", "derive_more 0.99.18", "eth_trie", "ethereum-types", @@ -3742,11 +3733,8 @@ dependencies = [ "poseidon2_plonky2", "rand", "rlp", - "rmp-serde", "rstest 0.18.2", "serde", - "serde_json", - "serial_test 3.1.1", "sha3", "tokio", ] @@ -3759,8 +3747,6 @@ dependencies = [ "anyhow", "env_logger 0.11.5", "eth_trie", - "ethers 2.0.13", - "hashbrown 0.14.5", "log", "mp2_common", "plonky2", @@ -3803,13 +3789,10 @@ dependencies = [ "rand_chacha", "recursion_framework", "rlp", - "rmp-serde", "ryhope", "serde", - "serde_arrays", "serde_json", "serial_test 3.1.1", - "sha3", "sqlparser", "test-log", "testfile", @@ -4162,9 +4145,6 @@ dependencies = [ "camelpaste", "clap", "log", - "mp2_common", - "plonky2", - "postgres", "ryhope", "serde", "serde_json", @@ -4555,20 +4535,6 @@ dependencies = [ "unroll", ] -[[package]] -name = "postgres" -version = "0.19.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95c918733159f4d55d2ceb262950f00b0aebd6af4aa97b5a47bb0655120475ed" -dependencies = [ - "bytes", - "fallible-iterator", - "futures-util", - "log", - "tokio", - "tokio-postgres", -] - [[package]] name = "postgres-protocol" version = "0.6.7" @@ -4817,8 +4783,6 @@ dependencies = [ "log", "mp2_common", "plonky2", - "plonky2_crypto", - "plonky2_ecgfp5", "plonky2_monolith", "rstest 0.18.2", "serde", @@ -5100,28 +5064,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "rmp" -version = "0.8.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "228ed7c16fa39782c3b3468e974aec2795e9089153cd08ee2e9aefb3613334c4" -dependencies = [ - "byteorder", - "num-traits", - "paste", -] - -[[package]] -name = "rmp-serde" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e599a477cf9840e92f2cde9a7189e67b42c57532749bf90aea6ec10facd4db" -dependencies = [ - "byteorder", - "rmp", - "serde", -] - [[package]] name = "rstest" version = "0.17.0" @@ -5524,15 +5466,6 @@ dependencies = [ "serde_derive", ] -[[package]] -name = "serde_arrays" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38636132857f68ec3d5f3eb121166d2af33cb55174c4d5ff645db6165cbef0fd" -dependencies = [ - "serde", -] - [[package]] name = "serde_derive" version = "1.0.210" @@ -6711,8 +6644,6 @@ dependencies = [ "anyhow", "bincode", "derive_more 0.99.18", - "env_logger 0.11.5", - "futures", "itertools 0.12.1", "log", "mp2_common", diff --git a/Cargo.toml b/Cargo.toml index 7bd12db01..0ab69519f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,6 @@ alloy = { version = "0.2", default-features = false, features = [ "getrandom", "network", "node-bindings", - "postgres", "providers", "reqwest", "rlp", @@ -56,14 +55,11 @@ plonky2_ecgfp5 = { git = "https://github.com/Lagrange-Labs/plonky2-ecgfp5" } plonky2_monolith = "0.1.0" plonky2x = { git = "https://github.com/Lagrange-Labs/succinctx", branch = "fix-build" } poseidon2_plonky2 = { git = "https://github.com/Lagrange-Labs/plonky2", branch = "upstream" } -postgres = { version = "0.19.7", features = ["with-serde_json-1"] } rand = "0.8" revm = { version = "3.5", default-features = false } rlp = "0.5" -rmp-serde = "1.1" rstest = "0.18" serde = { version = "1.0", features = ["derive"] } -serde_arrays = "0.1" serde_json = "1.0" serial_test = "3.0" sha2 = "0.10" diff --git a/groth16-framework/Cargo.toml b/groth16-framework/Cargo.toml index f9a68886c..a8ce89abe 100644 --- a/groth16-framework/Cargo.toml +++ b/groth16-framework/Cargo.toml @@ -11,21 +11,18 @@ log.workspace = true plonky2.workspace = true plonky2x.workspace = true revm.workspace = true -rlp.workspace = true serde.workspace = true serde_json.workspace = true gnark-utils = { path = "../gnark-utils" } mp2_common = { path = "../mp2-common" } -recursion_framework = { path = "../recursion-framework" } [dev-dependencies] env_logger.workspace = true itertools.workspace = true -plonky2_ecgfp5.workspace = true rand.workspace = true serial_test.workspace = true sha2.workspace = true -mp2_test = { path = "../mp2-test" } +recursion_framework = { path = "../recursion-framework" } verifiable-db = { path = "../verifiable-db" } diff --git a/inspect/Cargo.toml b/inspect/Cargo.toml index 53cb8e667..ae503c2cd 100644 --- a/inspect/Cargo.toml +++ b/inspect/Cargo.toml @@ -8,18 +8,12 @@ anyhow.workspace = true hex.workspace = true itertools.workspace = true serde.workspace = true -serde_json.workspace = true - -bb8 = "0.8.5" -bb8-postgres = "0.8.1" clap = { version = "4.5.17", features = ["derive"] } colored = "2.1.0" dialoguer = { version = "0.11.0", features = ["fuzzy-select"] } -postgres-types = {version = "0.2.6", features = ["with-serde_json-1"] } tabled = { version = "0.16.0", features = ["ansi"] } tokio = { version = "1.34", features = ["sync", "macros"], default-features = false } -tokio-postgres = { version = "0.7.10", features = ["with-chrono-0_4"] } ryhope = { path = "../ryhope" } mp2_v1 = { path = "../mp2-v1" } diff --git a/mp2-common/Cargo.toml b/mp2-common/Cargo.toml index 4feeb114f..a0de99ec8 100644 --- a/mp2-common/Cargo.toml +++ b/mp2-common/Cargo.toml @@ -26,12 +26,8 @@ sha3.workspace = true ethereum-types = "0.14.1" [dev-dependencies] -csv.workspace = true hex.workspace = true rand.workspace = true -rmp-serde.workspace = true -serde_json.workspace = true -serial_test.workspace = true tokio.workspace = true ethers.workspace = true diff --git a/mp2-test/Cargo.toml b/mp2-test/Cargo.toml index 1c824abda..e4fd7ddbb 100644 --- a/mp2-test/Cargo.toml +++ b/mp2-test/Cargo.toml @@ -8,8 +8,6 @@ alloy.workspace = true anyhow.workspace = true env_logger.workspace = true eth_trie.workspace = true -ethers.workspace = true -hashbrown.workspace = true log.workspace = true plonky2.workspace = true plonky2_ecgfp5.workspace = true diff --git a/mp2-v1/Cargo.toml b/mp2-v1/Cargo.toml index 3e9e88f2e..74ce2898b 100644 --- a/mp2-v1/Cargo.toml +++ b/mp2-v1/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" [dependencies] anyhow.workspace = true bincode.workspace = true -env_logger.workspace = true eth_trie.workspace = true hashbrown.workspace = true alloy.workspace = true @@ -19,8 +18,6 @@ plonky2_ecgfp5.workspace = true rand.workspace = true rlp.workspace = true serde.workspace = true -serde_arrays.workspace = true -sha3.workspace = true mp2_common = { path = "../mp2-common" } recursion_framework = { path = "../recursion-framework" } @@ -28,19 +25,19 @@ ryhope = { path = "../ryhope" } verifiable-db = { path = "../verifiable-db" } derive_more = "0.99.18" hex.workspace = true -parsil = { path = "../parsil" } serde_json.workspace = true [dev-dependencies] alloy.workspace = true csv.workspace = true hex.workspace = true -rmp-serde.workspace = true serde_json.workspace = true tokio.workspace = true serial_test.workspace = true mp2_test = { path = "../mp2-test" } +parsil = { path = "../parsil" } +env_logger.workspace = true envconfig = "0.10.0" test-log = "0.2.16" jammdb = "0.11.0" diff --git a/parsil/Cargo.toml b/parsil/Cargo.toml index 4e6ef1570..cc1865142 100644 --- a/parsil/Cargo.toml +++ b/parsil/Cargo.toml @@ -17,9 +17,6 @@ alloy.workspace = true anyhow.workspace = true camelpaste = "0.1.0" log.workspace = true -mp2_common = { path = "../mp2-common" } -plonky2.workspace = true -postgres.workspace = true ryhope = { path = "../ryhope" } serde.workspace = true serde_json.workspace = true diff --git a/recursion-framework/Cargo.toml b/recursion-framework/Cargo.toml index 4eadbb738..0552c3477 100644 --- a/recursion-framework/Cargo.toml +++ b/recursion-framework/Cargo.toml @@ -7,8 +7,6 @@ edition = "2021" anyhow.workspace = true log.workspace = true plonky2.workspace = true -plonky2_crypto.workspace = true -plonky2_ecgfp5.workspace = true serde.workspace = true mp2_common = { path = "../mp2-common" } @@ -21,4 +19,4 @@ rstest.workspace = true serial_test.workspace = true [features] -original_poseidon = ["mp2_common/original_poseidon"] \ No newline at end of file +original_poseidon = ["mp2_common/original_poseidon"] diff --git a/verifiable-db/Cargo.toml b/verifiable-db/Cargo.toml index 28b41c55e..c7d8b87b5 100644 --- a/verifiable-db/Cargo.toml +++ b/verifiable-db/Cargo.toml @@ -21,12 +21,10 @@ derive_more = "0.99.18" itertools.workspace = true [dev-dependencies] -env_logger.workspace = true -futures = "0.3.30" mp2_test = { path = "../mp2-test" } rand.workspace = true serial_test.workspace = true tokio.workspace = true [features] -original_poseidon = ["mp2_common/original_poseidon"] \ No newline at end of file +original_poseidon = ["mp2_common/original_poseidon"]