diff --git a/Cargo.toml b/Cargo.toml index 7f9a02cfa15..43f20c54440 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,9 +84,10 @@ resolver = "2" rust.missing_debug_implementations = "warn" rust.missing_docs = "warn" rust.unreachable_pub = "warn" +rustdoc.all = "warn" rust.unused_must_use = "deny" rust.rust_2018_idioms = "deny" -rustdoc.all = "warn" +clippy.empty_line_after_outer_attr = "deny" [workspace.package] version = "0.2.0-beta.3" @@ -101,6 +102,8 @@ exclude = [".github/"] [profile.dev.package] proptest.opt-level = 3 rand_xorshift.opt-level = 3 +rand_chacha.opt-level = 3 +unarray.opt-level = 3 # Meant for testing - all optimizations, but with debug assertions and overflow checks. [profile.hivetests] @@ -153,6 +156,7 @@ reth-optimism-payload-builder = { path = "crates/payload/optimism" } reth-interfaces = { path = "crates/interfaces" } reth-ipc = { path = "crates/rpc/ipc" } reth-libmdbx = { path = "crates/storage/libmdbx-rs" } +reth-mdbx-sys = { path = "crates/storage/libmdbx-rs/mdbx-sys" } reth-metrics = { path = "crates/metrics" } reth-metrics-derive = { path = "crates/metrics/metrics-derive" } reth-net-common = { path = "crates/net/common" } @@ -168,6 +172,7 @@ reth-prune = { path = "crates/prune" } reth-revm = { path = "crates/revm" } reth-rpc = { path = "crates/rpc/rpc" } reth-rpc-api = { path = "crates/rpc/rpc-api" } +reth-rpc-api-testing-util = { path = "crates/rpc/rpc-testing-util" } reth-rpc-builder = { path = "crates/rpc/rpc-builder" } reth-rpc-engine-api = { path = "crates/rpc/rpc-engine-api" } reth-rpc-types = { path = "crates/rpc/rpc-types" } @@ -179,6 +184,7 @@ reth-tokio-util = { path = "crates/tokio-util" } reth-tracing = { path = "crates/tracing" } reth-transaction-pool = { path = "crates/transaction-pool" } reth-trie = { path = "crates/trie" } +reth-trie-parallel = { path = "crates/trie-parallel" } # revm revm = { version = "7.1.0", features = ["std", "secp256k1"], default-features = false } @@ -203,6 +209,10 @@ alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "410850b" } ethers-core = { version = "2.0.14", default-features = false } ethers-providers = { version = "2.0.14", default-features = false } +# js +boa_engine = "0.17" +boa_gc = "0.17" + # misc aquamarine = "0.5" bytes = "1.5" @@ -223,6 +233,7 @@ rayon = "1.7" itertools = "0.12" parking_lot = "0.12" metrics = "0.21.1" # Needed for `metrics-macro` to resolve the crate using `::metrics` notation +hex-literal = "0.4" once_cell = "1.17" syn = "2.0" nybbles = "0.2.1" diff --git a/crates/ethereum-forks/src/forkid.rs b/crates/ethereum-forks/src/forkid.rs index 862aecfa696..40a8281d6e4 100644 --- a/crates/ethereum-forks/src/forkid.rs +++ b/crates/ethereum-forks/src/forkid.rs @@ -108,7 +108,6 @@ impl From for u64 { #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[cfg_attr(any(test, feature = "arbitrary"), derive(PropTestArbitrary, Arbitrary))] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, RlpEncodable, RlpDecodable, RlpMaxEncodedLen)] - pub struct ForkId { /// CRC32 checksum of the all fork blocks and timestamps from genesis. pub hash: ForkHash, diff --git a/crates/net/eth-wire/src/errors/eth.rs b/crates/net/eth-wire/src/errors/eth.rs index afa4fe0aee6..126394cacd5 100644 --- a/crates/net/eth-wire/src/errors/eth.rs +++ b/crates/net/eth-wire/src/errors/eth.rs @@ -79,7 +79,6 @@ impl From for EthStreamError { /// Error that can occur during the `eth` sub-protocol handshake. #[derive(thiserror::Error, Debug)] - pub enum EthHandshakeError { /// Status message received or sent outside of the handshake process. #[error("status message can only be recv/sent in handshake")] diff --git a/crates/node-core/src/args/rpc_state_cache_args.rs b/crates/node-core/src/args/rpc_state_cache_args.rs index bb152e66c75..c24a00074c6 100644 --- a/crates/node-core/src/args/rpc_state_cache_args.rs +++ b/crates/node-core/src/args/rpc_state_cache_args.rs @@ -7,7 +7,6 @@ use reth_rpc::eth::cache::{ /// Parameters to configure RPC state cache. #[derive(Debug, Clone, Args, PartialEq, Eq)] #[command(next_help_heading = "RPC State Cache")] - pub struct RpcStateCacheArgs { /// Max number of blocks in cache. #[arg(