diff --git a/Cargo.lock b/Cargo.lock index 19bf04abc..184b4b4d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -274,21 +274,6 @@ dependencies = [ "syn", ] -[[package]] -name = "bit-set" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" -dependencies = [ - "bit-vec", -] - -[[package]] -name = "bit-vec" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" - [[package]] name = "bit_field" version = "0.10.1" @@ -2844,26 +2829,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "proptest" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0d9cc07f18492d879586c92b485def06bc850da3118075cd45d50e9c95b0e5" -dependencies = [ - "bit-set", - "bitflags", - "byteorder", - "lazy_static", - "num-traits", - "quick-error 2.0.1", - "rand 0.8.5", - "rand_chacha 0.3.1", - "rand_xorshift", - "regex-syntax", - "rusty-fork", - "tempfile", -] - [[package]] name = "public-ip" version = "0.2.2" @@ -2885,18 +2850,6 @@ dependencies = [ "trust-dns-proto", ] -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - -[[package]] -name = "quick-error" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" - [[package]] name = "quote" version = "1.0.21" @@ -3208,11 +3161,9 @@ dependencies = [ "educe", "futures", "generic-array", - "hex", "hex-literal", "hmac", "pin-project", - "proptest", "rand 0.8.5", "reth-primitives", "reth-rlp", @@ -3232,14 +3183,11 @@ name = "reth-eth-wire" version = "0.1.0" dependencies = [ "bytes", - "crc", "ethers-core", "futures", "hex", "hex-literal", - "maplit", "pin-project", - "pin-utils", "rand 0.8.5", "reth-ecies", "reth-primitives", @@ -3739,18 +3687,6 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" -[[package]] -name = "rusty-fork" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" -dependencies = [ - "fnv", - "quick-error 1.2.3", - "tempfile", - "wait-timeout", -] - [[package]] name = "ryu" version = "1.0.11" @@ -4844,15 +4780,6 @@ dependencies = [ "vcell", ] -[[package]] -name = "wait-timeout" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" -dependencies = [ - "libc", -] - [[package]] name = "waker-fn" version = "1.1.0" diff --git a/crates/net/ecies/Cargo.toml b/crates/net/ecies/Cargo.toml index 0df0e2627..2541ce452 100644 --- a/crates/net/ecies/Cargo.toml +++ b/crates/net/ecies/Cargo.toml @@ -18,7 +18,6 @@ tokio-util = { version = "0.7.4", features = ["codec"] } pin-project = "1.0" educe = "0.4.19" -hex = "0.4.3" tracing = "0.1.37" # HeaderBytes @@ -41,4 +40,3 @@ cipher = { version = "0.4.3", features = ["block-padding"] } [dev-dependencies] hex-literal = "0.3.4" -proptest = "1.0.0" diff --git a/crates/net/ecies/src/lib.rs b/crates/net/ecies/src/lib.rs index 58bc44346..6f47f1ebe 100644 --- a/crates/net/ecies/src/lib.rs +++ b/crates/net/ecies/src/lib.rs @@ -1,4 +1,4 @@ -#![warn(missing_docs, unreachable_pub)] +#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)] #![deny(unused_must_use, rust_2018_idioms)] #![doc(test( no_crate_inject, diff --git a/crates/net/eth-wire/Cargo.toml b/crates/net/eth-wire/Cargo.toml index ff27c7e9e..fcda39c50 100644 --- a/crates/net/eth-wire/Cargo.toml +++ b/crates/net/eth-wire/Cargo.toml @@ -13,28 +13,25 @@ hex = "0.4" thiserror = "1" # reth -reth-ecies = { path = "../ecies" } reth-primitives = { path = "../../primitives" } reth-rlp = { path = "../../common/rlp", features = ["alloc", "derive", "std", "ethereum-types", "smol_str"] } # used for Chain and builders ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } -#used for forkid -crc = "1" -maplit = "1" tokio = { version = "1.21.2", features = ["full"] } futures = "0.3.24" tokio-stream = "0.1.11" -secp256k1 = { version = "0.24.0", features = ["global-context", "rand-std", "recovery"] } tokio-util = { version = "0.7.4", features = ["io"] } pin-project = "1.0" -pin-utils = "0.1.0" tracing = "0.1.37" snap = "1.0.5" smol_str = { version = "0.1", default-features = false } [dev-dependencies] -hex-literal = "0.3" +reth-ecies = { path = "../ecies" } ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false } + +hex-literal = "0.3" rand = "0.8" +secp256k1 = { version = "0.24.0", features = ["global-context", "rand-std", "recovery"] } diff --git a/crates/net/eth-wire/src/lib.rs b/crates/net/eth-wire/src/lib.rs index a09dea90c..577617b4c 100644 --- a/crates/net/eth-wire/src/lib.rs +++ b/crates/net/eth-wire/src/lib.rs @@ -1,4 +1,4 @@ -#![warn(missing_docs, unreachable_pub)] +#![warn(missing_docs, unreachable_pub, unused_crate_dependencies)] #![deny(unused_must_use, rust_2018_idioms)] #![doc(test( no_crate_inject,