diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7a156638f..fc2caa277 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -210,6 +210,17 @@ jobs: with: skip: "*.json" + check-toml: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Run dprint + uses: dprint/check@v2.2 + with: + config-path: dprint.json + grafana: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/Cargo.toml b/Cargo.toml index 384c26faf..400941714 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -429,9 +429,7 @@ revm-inspectors = "0.14.1" alloy-chains = { version = "0.1.32", default-features = false } alloy-dyn-abi = "0.8.15" alloy-eip2124 = { version = "0.1.0", default-features = false } -alloy-primitives = { version = "0.8.15", default-features = false, features = [ - "map-foldhash", -] } +alloy-primitives = { version = "0.8.15", default-features = false, features = ["map-foldhash"] } alloy-rlp = { version = "0.3.10", default-features = false } alloy-sol-types = "0.8.15" alloy-trie = { version = "0.7", default-features = false } @@ -444,14 +442,10 @@ alloy-json-rpc = { version = "0.9.2", default-features = false } alloy-network = { version = "0.9.2", default-features = false } alloy-network-primitives = { version = "0.9.2", default-features = false } alloy-node-bindings = { version = "0.9.2", default-features = false } -alloy-provider = { version = "0.9.2", features = [ - "reqwest", -], default-features = false } +alloy-provider = { version = "0.9.2", features = ["reqwest"], default-features = false } alloy-pubsub = { version = "0.9.2", default-features = false } alloy-rpc-client = { version = "0.9.2", default-features = false } -alloy-rpc-types = { version = "0.9.2", features = [ - "eth", -], default-features = false } +alloy-rpc-types = { version = "0.9.2", features = ["eth"], default-features = false } alloy-rpc-types-admin = { version = "0.9.2", default-features = false } alloy-rpc-types-anvil = { version = "0.9.2", default-features = false } alloy-rpc-types-beacon = { version = "0.9.2", default-features = false } @@ -465,9 +459,7 @@ alloy-serde = { version = "0.9.2", default-features = false } alloy-signer = { version = "0.9.2", default-features = false } alloy-signer-local = { version = "0.9.2", default-features = false } alloy-transport = { version = "0.9.2" } -alloy-transport-http = { version = "0.9.2", features = [ - "reqwest-rustls-tls", -], default-features = false } +alloy-transport-http = { version = "0.9.2", features = ["reqwest-rustls-tls"], default-features = false } alloy-transport-ipc = { version = "0.9.2", default-features = false } alloy-transport-ws = { version = "0.9.2", default-features = false } @@ -482,10 +474,7 @@ op-alloy-rpc-jsonrpsee = { version = "0.9.6", default-features = false } # misc aquamarine = "0.6" auto_impl = "1" -backon = { version = "1.2", default-features = false, features = [ - "std-blocking-sleep", - "tokio-sleep", -] } +backon = { version = "1.2", default-features = false, features = ["std-blocking-sleep", "tokio-sleep"] } bincode = "1.3" bitflags = "2.4" blake3 = "1.5.5" @@ -504,13 +493,9 @@ humantime-serde = "1.1" itertools = { version = "0.13", default-features = false } linked_hash_set = "0.1" modular-bitfield = "0.11.2" -notify = { version = "6.1.1", default-features = false, features = [ - "macos_fsevent", -] } +notify = { version = "6.1.1", default-features = false, features = ["macos_fsevent"] } nybbles = { version = "0.3.0", default-features = false } -once_cell = { version = "1.19", default-features = false, features = [ - "critical-section", -] } +once_cell = { version = "1.19", default-features = false, features = ["critical-section"] } parking_lot = "0.12" paste = "1.0" rand = "0.8.5" @@ -584,10 +569,7 @@ proptest-arbitrary-interop = "0.1.0" # crypto enr = { version = "0.12.1", default-features = false } k256 = { version = "0.13", default-features = false, features = ["ecdsa"] } -secp256k1 = { version = "0.29", default-features = false, features = [ - "global-context", - "recovery", -] } +secp256k1 = { version = "0.29", default-features = false, features = ["global-context", "recovery"] } # for eip-4844 c-kzg = "1.0.0" diff --git a/Cross.toml b/Cross.toml index 775ee7c82..d5f613469 100644 --- a/Cross.toml +++ b/Cross.toml @@ -1,10 +1,10 @@ [build] pre-build = [ # rust-bindgen dependencies: llvm-dev libclang-dev (>= 5.0) clang (>= 5.0) - "apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-6.0-dev clang-6.0" + "apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-6.0-dev clang-6.0", ] [build.env] passthrough = [ "JEMALLOC_SYS_WITH_LG_PAGE", -] \ No newline at end of file +] diff --git a/Makefile b/Makefile index 400784d76..2d3078bac 100644 --- a/Makefile +++ b/Makefile @@ -415,12 +415,32 @@ ensure-codespell: exit 1; \ fi +# Lint and format all TOML files in the project using dprint. +# This target ensures that TOML files follow consistent formatting rules, +# such as using spaces instead of tabs, and enforces other style guidelines +# defined in the dprint configuration file (e.g., dprint.json). +# +# Usage: +# make lint-toml +# +# Dependencies: +# - ensure-dprint: Ensures that dprint is installed and available in the system. +lint-toml: ensure-dprint + dprint fmt + +ensure-dprint: + @if ! command -v dprint &> /dev/null; then \ + echo "dprint not found. Please install it by running the command `cargo install --locked dprint` or refer to the following link for more information: https://github.com/dprint/dprint" \ + exit 1; \ + fi + lint: make fmt && \ make lint-reth && \ make lint-op-reth && \ make lint-other-targets && \ - make lint-codespell + make lint-codespell && \ + make lint-toml fix-lint-reth: cargo +nightly clippy \ diff --git a/bin/reth-bench/Cargo.toml b/bin/reth-bench/Cargo.toml index 65ea9fb90..940c61bc8 100644 --- a/bin/reth-bench/Cargo.toml +++ b/bin/reth-bench/Cargo.toml @@ -24,10 +24,7 @@ reth-primitives-traits.workspace = true reth-tracing.workspace = true # alloy -alloy-provider = { workspace = true, features = [ - "engine-api", - "reqwest-rustls-tls", -], default-features = false } +alloy-provider = { workspace = true, features = ["engine-api", "reqwest-rustls-tls"], default-features = false } alloy-rpc-types-engine.workspace = true alloy-transport.workspace = true alloy-transport-http.workspace = true @@ -40,9 +37,7 @@ alloy-eips.workspace = true alloy-primitives.workspace = true # reqwest -reqwest = { workspace = true, default-features = false, features = [ - "rustls-tls-native-roots", -] } +reqwest = { workspace = true, default-features = false, features = ["rustls-tls-native-roots"] } # tower tower.workspace = true @@ -54,12 +49,7 @@ tracing.workspace = true serde.workspace = true # async -tokio = { workspace = true, features = [ - "sync", - "macros", - "time", - "rt-multi-thread", -] } +tokio = { workspace = true, features = ["sync", "macros", "time", "rt-multi-thread"] } futures.workspace = true async-trait.workspace = true @@ -78,14 +68,14 @@ reth-tracing.workspace = true default = ["jemalloc"] asm-keccak = [ - "reth-primitives/asm-keccak", - "reth-node-core/asm-keccak", - "alloy-primitives/asm-keccak" + "reth-primitives/asm-keccak", + "reth-node-core/asm-keccak", + "alloy-primitives/asm-keccak", ] jemalloc = [ - "reth-cli-util/jemalloc", - "reth-node-core/jemalloc" + "reth-cli-util/jemalloc", + "reth-node-core/jemalloc", ] jemalloc-prof = ["reth-cli-util/jemalloc-prof"] tracy-allocator = ["reth-cli-util/tracy-allocator"] diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 8487a08ea..ec397cafb 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -78,12 +78,7 @@ tracing.workspace = true serde_json.workspace = true # async -tokio = { workspace = true, features = [ - "sync", - "macros", - "time", - "rt-multi-thread", -] } +tokio = { workspace = true, features = ["sync", "macros", "time", "rt-multi-thread"] } futures.workspace = true # misc @@ -102,9 +97,9 @@ default = ["jemalloc"] dev = ["reth-cli-commands/arbitrary"] asm-keccak = [ - "reth-node-core/asm-keccak", - "reth-primitives/asm-keccak", - "alloy-primitives/asm-keccak" + "reth-node-core/asm-keccak", + "reth-primitives/asm-keccak", + "alloy-primitives/asm-keccak", ] jemalloc = [ @@ -113,8 +108,8 @@ jemalloc = [ "reth-node-metrics/jemalloc", ] jemalloc-prof = [ - "reth-cli-util/jemalloc", - "reth-cli-util/jemalloc-prof" + "reth-cli-util/jemalloc", + "reth-cli-util/jemalloc-prof", ] tracy-allocator = ["reth-cli-util/tracy-allocator"] diff --git a/book/sources/exex/hello-world/Cargo.toml b/book/sources/exex/hello-world/Cargo.toml index c466018c6..e5d32a140 100644 --- a/book/sources/exex/hello-world/Cargo.toml +++ b/book/sources/exex/hello-world/Cargo.toml @@ -4,10 +4,10 @@ version = "0.1.0" edition = "2021" [dependencies] -reth = { git = "https://github.com/paradigmxyz/reth.git" } # Reth -reth-exex = { git = "https://github.com/paradigmxyz/reth.git" } # Execution Extensions +reth = { git = "https://github.com/paradigmxyz/reth.git" } # Reth +reth-exex = { git = "https://github.com/paradigmxyz/reth.git" } # Execution Extensions reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth.git" } # Ethereum Node implementation -reth-tracing = { git = "https://github.com/paradigmxyz/reth.git" } # Logging +reth-tracing = { git = "https://github.com/paradigmxyz/reth.git" } # Logging -eyre = "0.6" # Easy error handling +eyre = "0.6" # Easy error handling futures-util = "0.3" # Stream utilities for consuming notifications diff --git a/book/sources/exex/remote/Cargo.toml b/book/sources/exex/remote/Cargo.toml index 6cca3a841..bbc4fe595 100644 --- a/book/sources/exex/remote/Cargo.toml +++ b/book/sources/exex/remote/Cargo.toml @@ -6,9 +6,7 @@ edition = "2021" [dependencies] # reth reth = { git = "https://github.com/paradigmxyz/reth.git" } -reth-exex = { git = "https://github.com/paradigmxyz/reth.git", features = [ - "serde", -] } +reth-exex = { git = "https://github.com/paradigmxyz/reth.git", features = ["serde"] } reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth.git" } reth-node-api = { git = "https://github.com/paradigmxyz/reth.git" } reth-tracing = { git = "https://github.com/paradigmxyz/reth.git" } diff --git a/book/sources/exex/tracking-state/Cargo.toml b/book/sources/exex/tracking-state/Cargo.toml index a8e862d0a..85f360d9d 100644 --- a/book/sources/exex/tracking-state/Cargo.toml +++ b/book/sources/exex/tracking-state/Cargo.toml @@ -5,12 +5,10 @@ edition = "2021" [dependencies] reth = { git = "https://github.com/paradigmxyz/reth.git" } -reth-exex = { git = "https://github.com/paradigmxyz/reth.git", features = [ - "serde", -] } +reth-exex = { git = "https://github.com/paradigmxyz/reth.git", features = ["serde"] } reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth.git" } reth-tracing = { git = "https://github.com/paradigmxyz/reth.git" } -eyre = "0.6" # Easy error handling -futures-util = "0.3" # Stream utilities for consuming notifications +eyre = "0.6" # Easy error handling +futures-util = "0.3" # Stream utilities for consuming notifications alloy-primitives = "0.8.7" diff --git a/crates/chainspec/Cargo.toml b/crates/chainspec/Cargo.toml index 8e1d26f1a..50b63b8be 100644 --- a/crates/chainspec/Cargo.toml +++ b/crates/chainspec/Cargo.toml @@ -39,28 +39,28 @@ alloy-genesis.workspace = true [features] default = ["std"] std = [ - "alloy-chains/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "alloy-trie/std", - "reth-primitives-traits/std", - "alloy-consensus/std", - "alloy-rlp/std", - "reth-ethereum-forks/std", - "derive_more/std", - "reth-network-peers/std", - "serde_json/std" + "alloy-chains/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "alloy-trie/std", + "reth-primitives-traits/std", + "alloy-consensus/std", + "alloy-rlp/std", + "reth-ethereum-forks/std", + "derive_more/std", + "reth-network-peers/std", + "serde_json/std", ] arbitrary = [ - "alloy-chains/arbitrary", - "reth-ethereum-forks/arbitrary", - "reth-primitives-traits/arbitrary", - "alloy-consensus/arbitrary", - "alloy-eips/arbitrary", - "alloy-primitives/arbitrary", - "alloy-trie/arbitrary" + "alloy-chains/arbitrary", + "reth-ethereum-forks/arbitrary", + "reth-primitives-traits/arbitrary", + "alloy-consensus/arbitrary", + "alloy-eips/arbitrary", + "alloy-primitives/arbitrary", + "alloy-trie/arbitrary", ] test-utils = [ - "reth-primitives-traits/test-utils", + "reth-primitives-traits/test-utils", ] diff --git a/crates/cli/cli/Cargo.toml b/crates/cli/cli/Cargo.toml index 5da51a1b2..34e3dc8d4 100644 --- a/crates/cli/cli/Cargo.toml +++ b/crates/cli/cli/Cargo.toml @@ -10,7 +10,6 @@ repository.workspace = true [lints] workspace = true - [dependencies] # reth reth-cli-runner.workspace = true @@ -22,6 +21,3 @@ clap.workspace = true shellexpand.workspace = true eyre.workspace = true serde_json.workspace = true - - - diff --git a/crates/cli/commands/Cargo.toml b/crates/cli/commands/Cargo.toml index c5f6cef0d..8cd60c318 100644 --- a/crates/cli/commands/Cargo.toml +++ b/crates/cli/commands/Cargo.toml @@ -68,11 +68,7 @@ serde.workspace = true serde_json.workspace = true tracing.workspace = true backon.workspace = true -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } # io fdlimit.workspace = true @@ -81,9 +77,7 @@ toml = { workspace = true, features = ["display"] } # tui comfy-table = "7.0" crossterm = "0.28.0" -ratatui = { version = "0.28", default-features = false, features = [ - "crossterm", -] } +ratatui = { version = "0.28", default-features = false, features = ["crossterm"] } # reth test-vectors proptest = { workspace = true, optional = true } diff --git a/crates/consensus/common/Cargo.toml b/crates/consensus/common/Cargo.toml index 75dc4c00c..75533c913 100644 --- a/crates/consensus/common/Cargo.toml +++ b/crates/consensus/common/Cargo.toml @@ -29,11 +29,11 @@ rand.workspace = true [features] default = ["std"] std = [ - "alloy-consensus/std", - "alloy-eips/std", - "alloy-primitives/std", - "reth-chainspec/std", - "reth-consensus/std", - "reth-primitives-traits/std", - "reth-primitives/std" + "alloy-consensus/std", + "alloy-eips/std", + "alloy-primitives/std", + "reth-chainspec/std", + "reth-consensus/std", + "reth-primitives-traits/std", + "reth-primitives/std", ] diff --git a/crates/consensus/consensus/Cargo.toml b/crates/consensus/consensus/Cargo.toml index 36356a4de..385cc5152 100644 --- a/crates/consensus/consensus/Cargo.toml +++ b/crates/consensus/consensus/Cargo.toml @@ -27,15 +27,15 @@ derive_more.workspace = true [features] default = ["std"] std = [ - "reth-primitives/std", - "reth-primitives-traits/std", - "alloy-primitives/std", - "alloy-eips/std", - "alloy-consensus/std", - "reth-primitives-traits/std", - "derive_more/std" + "reth-primitives/std", + "reth-primitives-traits/std", + "alloy-primitives/std", + "alloy-eips/std", + "alloy-consensus/std", + "reth-primitives-traits/std", + "derive_more/std", ] test-utils = [ - "reth-primitives/test-utils", - "reth-primitives-traits/test-utils" + "reth-primitives/test-utils", + "reth-primitives-traits/test-utils", ] diff --git a/crates/e2e-test-utils/Cargo.toml b/crates/e2e-test-utils/Cargo.toml index 50784ddd5..57610c77b 100644 --- a/crates/e2e-test-utils/Cargo.toml +++ b/crates/e2e-test-utils/Cargo.toml @@ -34,7 +34,7 @@ reth-engine-local.workspace = true reth-tasks.workspace = true # currently need to enable this for workspace level -reth-optimism-primitives = { workspace = true, features = ["arbitrary", "serde"] } +reth-optimism-primitives = { workspace = true, features = ["arbitrary", "serde"] } # rpc jsonrpsee.workspace = true diff --git a/crates/engine/local/Cargo.toml b/crates/engine/local/Cargo.toml index ad7657de8..d80be90e0 100644 --- a/crates/engine/local/Cargo.toml +++ b/crates/engine/local/Cargo.toml @@ -47,5 +47,5 @@ workspace = true [features] op = [ - "dep:op-alloy-rpc-types-engine" + "dep:op-alloy-rpc-types-engine", ] diff --git a/crates/engine/primitives/Cargo.toml b/crates/engine/primitives/Cargo.toml index 4a475c558..2e9e020a9 100644 --- a/crates/engine/primitives/Cargo.toml +++ b/crates/engine/primitives/Cargo.toml @@ -37,14 +37,14 @@ thiserror.workspace = true [features] default = ["std"] std = [ - "reth-execution-types/std", - "reth-primitives/std", - "reth-primitives-traits/std", - "alloy-primitives/std", - "alloy-consensus/std", - "alloy-rpc-types-engine/std", - "futures/std", - "serde/std", - "thiserror/std", - "alloy-eips/std" + "reth-execution-types/std", + "reth-primitives/std", + "reth-primitives-traits/std", + "alloy-primitives/std", + "alloy-consensus/std", + "alloy-rpc-types-engine/std", + "futures/std", + "serde/std", + "thiserror/std", + "alloy-eips/std", ] diff --git a/crates/engine/tree/Cargo.toml b/crates/engine/tree/Cargo.toml index 6800d14d4..48b9288a3 100644 --- a/crates/engine/tree/Cargo.toml +++ b/crates/engine/tree/Cargo.toml @@ -103,25 +103,25 @@ harness = false [features] test-utils = [ - "reth-chain-state/test-utils", - "reth-chainspec/test-utils", - "reth-consensus/test-utils", - "reth-db/test-utils", - "reth-evm/test-utils", - "reth-network-p2p/test-utils", - "reth-payload-builder/test-utils", - "reth-primitives-traits/test-utils", - "reth-provider/test-utils", - "reth-prune-types", - "reth-prune-types?/test-utils", - "reth-revm/test-utils", - "reth-stages-api/test-utils", - "reth-stages/test-utils", - "reth-static-file", - "reth-tracing", - "reth-trie/test-utils", - "reth-trie-sparse/test-utils", - "reth-prune-types?/test-utils", - "reth-trie-db/test-utils", - "reth-trie-parallel/test-utils" + "reth-chain-state/test-utils", + "reth-chainspec/test-utils", + "reth-consensus/test-utils", + "reth-db/test-utils", + "reth-evm/test-utils", + "reth-network-p2p/test-utils", + "reth-payload-builder/test-utils", + "reth-primitives-traits/test-utils", + "reth-provider/test-utils", + "reth-prune-types", + "reth-prune-types?/test-utils", + "reth-revm/test-utils", + "reth-stages-api/test-utils", + "reth-stages/test-utils", + "reth-static-file", + "reth-tracing", + "reth-trie/test-utils", + "reth-trie-sparse/test-utils", + "reth-prune-types?/test-utils", + "reth-trie-db/test-utils", + "reth-trie-parallel/test-utils", ] diff --git a/crates/ethereum-forks/Cargo.toml b/crates/ethereum-forks/Cargo.toml index 938934d20..170472bc4 100644 --- a/crates/ethereum-forks/Cargo.toml +++ b/crates/ethereum-forks/Cargo.toml @@ -33,23 +33,23 @@ arbitrary = { workspace = true, features = ["derive"] } [features] default = ["std", "serde", "rustc-hash"] arbitrary = [ - "dep:arbitrary", - "alloy-chains/arbitrary", - "alloy-primitives/arbitrary", - "alloy-eip2124/arbitrary" + "dep:arbitrary", + "alloy-chains/arbitrary", + "alloy-primitives/arbitrary", + "alloy-eip2124/arbitrary", ] serde = [ - "dep:serde", - "alloy-chains/serde", - "alloy-primitives/serde", - "alloy-eip2124/serde" + "dep:serde", + "alloy-chains/serde", + "alloy-primitives/serde", + "alloy-eip2124/serde", ] std = [ - "alloy-chains/std", - "alloy-primitives/std", - "rustc-hash/std", - "serde?/std", - "alloy-eip2124/std", - "once_cell/std" + "alloy-chains/std", + "alloy-primitives/std", + "rustc-hash/std", + "serde?/std", + "alloy-eip2124/std", + "once_cell/std", ] rustc-hash = ["dep:rustc-hash"] diff --git a/crates/ethereum/cli/Cargo.toml b/crates/ethereum/cli/Cargo.toml index 108f42f53..a73975480 100644 --- a/crates/ethereum/cli/Cargo.toml +++ b/crates/ethereum/cli/Cargo.toml @@ -20,4 +20,4 @@ eyre.workspace = true [dev-dependencies] clap.workspace = true -reth-cli-commands.workspace = true \ No newline at end of file +reth-cli-commands.workspace = true diff --git a/crates/ethereum/engine-primitives/Cargo.toml b/crates/ethereum/engine-primitives/Cargo.toml index f68924a73..0e73b20c7 100644 --- a/crates/ethereum/engine-primitives/Cargo.toml +++ b/crates/ethereum/engine-primitives/Cargo.toml @@ -35,14 +35,14 @@ serde_json.workspace = true [features] default = ["std"] std = [ - "reth-chainspec/std", - "reth-primitives/std", - "alloy-primitives/std", - "alloy-eips/std", - "alloy-rpc-types-engine/std", - "alloy-rlp/std", - "serde/std", - "sha2/std", - "serde_json/std", - "reth-engine-primitives/std" + "reth-chainspec/std", + "reth-primitives/std", + "alloy-primitives/std", + "alloy-eips/std", + "alloy-rpc-types-engine/std", + "alloy-rlp/std", + "serde/std", + "sha2/std", + "serde_json/std", + "reth-engine-primitives/std", ] diff --git a/crates/ethereum/evm/Cargo.toml b/crates/ethereum/evm/Cargo.toml index 19a026517..03a282071 100644 --- a/crates/ethereum/evm/Cargo.toml +++ b/crates/ethereum/evm/Cargo.toml @@ -46,18 +46,18 @@ alloy-genesis.workspace = true [features] default = ["std"] std = [ - "reth-consensus/std", - "reth-primitives/std", - "reth-revm/std", - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "revm-primitives/std", - "secp256k1/std", - "reth-ethereum-forks/std", - "serde_json/std", - "reth-primitives-traits/std", - "reth-chainspec/std", - "derive_more/std" + "reth-consensus/std", + "reth-primitives/std", + "reth-revm/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "revm-primitives/std", + "secp256k1/std", + "reth-ethereum-forks/std", + "serde_json/std", + "reth-primitives-traits/std", + "reth-chainspec/std", + "derive_more/std", ] diff --git a/crates/ethereum/node/Cargo.toml b/crates/ethereum/node/Cargo.toml index 4f4f7b0f8..54db70a4c 100644 --- a/crates/ethereum/node/Cargo.toml +++ b/crates/ethereum/node/Cargo.toml @@ -68,7 +68,7 @@ rand.workspace = true [features] default = [] js-tracer = [ - "reth-node-builder/js-tracer" + "reth-node-builder/js-tracer", ] test-utils = [ "reth-node-builder/test-utils", diff --git a/crates/ethereum/primitives/Cargo.toml b/crates/ethereum/primitives/Cargo.toml index e4f21c95d..5744287f9 100644 --- a/crates/ethereum/primitives/Cargo.toml +++ b/crates/ethereum/primitives/Cargo.toml @@ -53,18 +53,18 @@ alloy-consensus = { workspace = true, features = ["serde", "arbitrary"] } default = ["std"] alloy-compat = ["dep:alloy-network", "dep:alloy-serde", "dep:alloy-rpc-types"] std = [ - "alloy-consensus/std", - "alloy-primitives/std", - "alloy-rlp/std", - "reth-primitives-traits/std", - "reth-zstd-compressors?/std", - "serde/std", - "alloy-eips/std", - "derive_more/std", - "secp256k1?/std", - "once_cell/std", - "revm-primitives/std", - "alloy-serde?/std" + "alloy-consensus/std", + "alloy-primitives/std", + "alloy-rlp/std", + "reth-primitives-traits/std", + "reth-zstd-compressors?/std", + "serde/std", + "alloy-eips/std", + "derive_more/std", + "secp256k1?/std", + "once_cell/std", + "revm-primitives/std", + "alloy-serde?/std", ] reth-codec = [ "std", @@ -73,20 +73,20 @@ reth-codec = [ "dep:reth-zstd-compressors", ] arbitrary = [ - "dep:arbitrary", - "dep:rand", - "dep:secp256k1", - "alloy-consensus/arbitrary", - "alloy-primitives/arbitrary", - "reth-codecs?/arbitrary", - "reth-primitives-traits/arbitrary", - "alloy-eips/arbitrary", - "revm-primitives/arbitrary", - "alloy-rpc-types?/arbitrary", - "alloy-serde?/arbitrary" + "dep:arbitrary", + "dep:rand", + "dep:secp256k1", + "alloy-consensus/arbitrary", + "alloy-primitives/arbitrary", + "reth-codecs?/arbitrary", + "reth-primitives-traits/arbitrary", + "alloy-eips/arbitrary", + "revm-primitives/arbitrary", + "alloy-rpc-types?/arbitrary", + "alloy-serde?/arbitrary", ] serde-bincode-compat = [ - "alloy-consensus/serde-bincode-compat", - "alloy-eips/serde-bincode-compat", - "reth-primitives-traits/serde-bincode-compat" + "alloy-consensus/serde-bincode-compat", + "alloy-eips/serde-bincode-compat", + "reth-primitives-traits/serde-bincode-compat", ] diff --git a/crates/evm/Cargo.toml b/crates/evm/Cargo.toml index 8f58e8241..5f7e8d428 100644 --- a/crates/evm/Cargo.toml +++ b/crates/evm/Cargo.toml @@ -46,20 +46,20 @@ metrics-util = { workspace = true, features = ["debugging"] } [features] default = ["std"] std = [ - "dep:metrics", - "dep:reth-metrics", - "reth-consensus/std", - "reth-primitives/std", - "reth-primitives-traits/std", - "reth-revm/std", - "alloy-eips/std", - "alloy-primitives/std", - "alloy-consensus/std", - "revm-primitives/std", - "revm/std", - "reth-ethereum-forks/std", - "reth-chainspec/std", - "reth-consensus-common/std" + "dep:metrics", + "dep:reth-metrics", + "reth-consensus/std", + "reth-primitives/std", + "reth-primitives-traits/std", + "reth-revm/std", + "alloy-eips/std", + "alloy-primitives/std", + "alloy-consensus/std", + "revm-primitives/std", + "revm/std", + "reth-ethereum-forks/std", + "reth-chainspec/std", + "reth-consensus-common/std", ] test-utils = [ "dep:parking_lot", @@ -69,5 +69,5 @@ test-utils = [ "reth-primitives-traits/test-utils", "reth-revm/test-utils", "revm/test-utils", - "reth-prune-types/test-utils" + "reth-prune-types/test-utils", ] diff --git a/crates/evm/execution-errors/Cargo.toml b/crates/evm/execution-errors/Cargo.toml index b4b9992a9..468fcfc1d 100644 --- a/crates/evm/execution-errors/Cargo.toml +++ b/crates/evm/execution-errors/Cargo.toml @@ -27,11 +27,11 @@ thiserror.workspace = true [features] default = ["std"] std = [ - "reth-consensus/std", - "alloy-eips/std", - "alloy-primitives/std", - "revm-primitives/std", - "alloy-rlp/std", - "thiserror/std", - "nybbles/std" + "reth-consensus/std", + "alloy-eips/std", + "alloy-primitives/std", + "revm-primitives/std", + "alloy-rlp/std", + "thiserror/std", + "nybbles/std", ] diff --git a/crates/evm/execution-types/Cargo.toml b/crates/evm/execution-types/Cargo.toml index f7372e7f2..5cc787554 100644 --- a/crates/evm/execution-types/Cargo.toml +++ b/crates/evm/execution-types/Cargo.toml @@ -38,35 +38,35 @@ reth-ethereum-primitives.workspace = true default = ["std"] optimism = ["revm/optimism"] serde = [ - "dep:serde", - "rand/serde", - "revm/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "reth-primitives-traits/serde", - "alloy-consensus/serde", - "reth-trie/serde", - "reth-trie-common?/serde" + "dep:serde", + "rand/serde", + "revm/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "reth-primitives-traits/serde", + "alloy-consensus/serde", + "reth-trie/serde", + "reth-trie-common?/serde", ] serde-bincode-compat = [ - "serde", - "reth-trie-common/serde-bincode-compat", - "reth-primitives/serde-bincode-compat", - "reth-primitives-traits/serde-bincode-compat", - "serde_with", - "alloy-eips/serde-bincode-compat", - "alloy-consensus/serde-bincode-compat", - "reth-ethereum-primitives/serde-bincode-compat" + "serde", + "reth-trie-common/serde-bincode-compat", + "reth-primitives/serde-bincode-compat", + "reth-primitives-traits/serde-bincode-compat", + "serde_with", + "alloy-eips/serde-bincode-compat", + "alloy-consensus/serde-bincode-compat", + "reth-ethereum-primitives/serde-bincode-compat", ] std = [ - "reth-primitives/std", - "alloy-eips/std", - "alloy-primitives/std", - "revm/std", - "serde?/std", - "reth-primitives-traits/std", - "alloy-consensus/std", - "serde_with?/std", - "reth-trie-common?/std", - "reth-ethereum-primitives/std" + "reth-primitives/std", + "alloy-eips/std", + "alloy-primitives/std", + "revm/std", + "serde?/std", + "reth-primitives-traits/std", + "alloy-consensus/std", + "serde_with?/std", + "reth-trie-common?/std", + "reth-ethereum-primitives/std", ] diff --git a/crates/exex/exex/Cargo.toml b/crates/exex/exex/Cargo.toml index 60ba7e25a..ad463a855 100644 --- a/crates/exex/exex/Cargo.toml +++ b/crates/exex/exex/Cargo.toml @@ -17,10 +17,7 @@ reth-chain-state.workspace = true reth-chainspec.workspace = true reth-config.workspace = true reth-evm.workspace = true -reth-exex-types = { workspace = true, features = [ - "serde", - "serde-bincode-compat", -] } +reth-exex-types = { workspace = true, features = ["serde", "serde-bincode-compat"] } reth-fs-util.workspace = true reth-metrics.workspace = true reth-node-api.workspace = true @@ -70,14 +67,14 @@ tempfile.workspace = true [features] default = [] serde = [ - "reth-provider/serde", - "reth-exex-types/serde", - "reth-revm/serde", - "alloy-consensus/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "parking_lot/serde", - "rand/serde", - "secp256k1/serde", - "reth-primitives-traits/serde", + "reth-provider/serde", + "reth-exex-types/serde", + "reth-revm/serde", + "alloy-consensus/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "parking_lot/serde", + "rand/serde", + "secp256k1/serde", + "reth-primitives-traits/serde", ] diff --git a/crates/exex/types/Cargo.toml b/crates/exex/types/Cargo.toml index b7e659d80..b8fe25555 100644 --- a/crates/exex/types/Cargo.toml +++ b/crates/exex/types/Cargo.toml @@ -36,17 +36,17 @@ rand.workspace = true [features] default = [] serde = [ - "dep:serde", - "reth-execution-types/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "rand/serde", - "reth-primitives-traits/serde", + "dep:serde", + "reth-execution-types/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "rand/serde", + "reth-primitives-traits/serde", ] serde-bincode-compat = [ - "reth-execution-types/serde-bincode-compat", - "serde_with", - "reth-primitives/serde-bincode-compat", - "alloy-eips/serde-bincode-compat", - "reth-primitives-traits/serde-bincode-compat", + "reth-execution-types/serde-bincode-compat", + "serde_with", + "reth-primitives/serde-bincode-compat", + "alloy-eips/serde-bincode-compat", + "reth-primitives-traits/serde-bincode-compat", ] diff --git a/crates/fs-util/Cargo.toml b/crates/fs-util/Cargo.toml index 10718687e..01ae98807 100644 --- a/crates/fs-util/Cargo.toml +++ b/crates/fs-util/Cargo.toml @@ -12,7 +12,6 @@ description = "Commonly used fs utils in reth." workspace = true [dependencies] - # misc serde_json = { workspace = true, features = ["std"] } serde.workspace = true diff --git a/crates/net/banlist/Cargo.toml b/crates/net/banlist/Cargo.toml index a9fb9fcda..7afec48d4 100644 --- a/crates/net/banlist/Cargo.toml +++ b/crates/net/banlist/Cargo.toml @@ -13,4 +13,4 @@ workspace = true [dependencies] # ethereum -alloy-primitives.workspace = true \ No newline at end of file +alloy-primitives.workspace = true diff --git a/crates/net/discv4/Cargo.toml b/crates/net/discv4/Cargo.toml index 70946c6dc..dfd2c6eb6 100644 --- a/crates/net/discv4/Cargo.toml +++ b/crates/net/discv4/Cargo.toml @@ -22,12 +22,7 @@ reth-network-peers = { workspace = true, features = ["secp256k1"] } alloy-primitives = { workspace = true, features = ["rand"] } alloy-rlp = { workspace = true, features = ["derive"] } discv5.workspace = true -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", - "serde", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery", "serde"] } enr.workspace = true # async/futures @@ -53,14 +48,14 @@ reth-tracing.workspace = true [features] default = ["serde"] serde = [ - "dep:serde", - "alloy-primitives/serde", - "discv5/serde", - "enr/serde", - "generic-array/serde", - "parking_lot/serde", - "rand?/serde", - "secp256k1/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "alloy-primitives/serde", + "discv5/serde", + "enr/serde", + "generic-array/serde", + "parking_lot/serde", + "rand?/serde", + "secp256k1/serde", + "reth-ethereum-forks/serde", ] test-utils = ["dep:rand"] diff --git a/crates/net/dns/Cargo.toml b/crates/net/dns/Cargo.toml index 9e3e93d12..0c8d30d0e 100644 --- a/crates/net/dns/Cargo.toml +++ b/crates/net/dns/Cargo.toml @@ -49,15 +49,15 @@ rand.workspace = true [features] serde = [ - "dep:serde", - "dep:serde_with", - "alloy-chains/serde", - "alloy-primitives/serde", - "enr/serde", - "linked_hash_set/serde", - "parking_lot/serde", - "rand/serde", - "secp256k1/serde", - "hickory-resolver/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "dep:serde_with", + "alloy-chains/serde", + "alloy-primitives/serde", + "enr/serde", + "linked_hash_set/serde", + "parking_lot/serde", + "rand/serde", + "secp256k1/serde", + "hickory-resolver/serde", + "reth-ethereum-forks/serde", ] diff --git a/crates/net/downloaders/Cargo.toml b/crates/net/downloaders/Cargo.toml index 2945e9d2a..56ca9197d 100644 --- a/crates/net/downloaders/Cargo.toml +++ b/crates/net/downloaders/Cargo.toml @@ -73,21 +73,21 @@ tempfile.workspace = true [features] optimism = [ - "reth-db?/optimism", - "reth-db-api?/optimism", - "reth-provider/optimism" + "reth-db?/optimism", + "reth-db-api?/optimism", + "reth-provider/optimism", ] test-utils = [ - "tempfile", - "reth-db-api", - "reth-db/test-utils", - "reth-consensus/test-utils", - "reth-network-p2p/test-utils", - "reth-testing-utils", - "reth-chainspec/test-utils", - "reth-primitives/test-utils", - "reth-db-api?/test-utils", - "reth-provider/test-utils", - "reth-primitives-traits/test-utils" + "tempfile", + "reth-db-api", + "reth-db/test-utils", + "reth-consensus/test-utils", + "reth-network-p2p/test-utils", + "reth-testing-utils", + "reth-chainspec/test-utils", + "reth-primitives/test-utils", + "reth-db-api?/test-utils", + "reth-provider/test-utils", + "reth-primitives-traits/test-utils", ] diff --git a/crates/net/eth-wire-types/Cargo.toml b/crates/net/eth-wire-types/Cargo.toml index 5bb6f315e..fee3fe36c 100644 --- a/crates/net/eth-wire-types/Cargo.toml +++ b/crates/net/eth-wire-types/Cargo.toml @@ -51,42 +51,42 @@ rand.workspace = true [features] default = ["std"] std = [ - "alloy-chains/std", - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "alloy-rlp/std", - "bytes/std", - "derive_more/std", - "reth-ethereum-forks/std", - "reth-ethereum-primitives/std", - "reth-primitives-traits/std", - "serde?/std", - "thiserror/std", - "reth-chainspec/std" + "alloy-chains/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "alloy-rlp/std", + "bytes/std", + "derive_more/std", + "reth-ethereum-forks/std", + "reth-ethereum-primitives/std", + "reth-primitives-traits/std", + "serde?/std", + "thiserror/std", + "reth-chainspec/std", ] arbitrary = [ - "reth-ethereum-primitives/arbitrary", - "alloy-chains/arbitrary", - "dep:arbitrary", - "dep:proptest", - "dep:proptest-arbitrary-interop", - "reth-chainspec/arbitrary", - "alloy-consensus/arbitrary", - "alloy-eips/arbitrary", - "alloy-primitives/arbitrary", - "reth-primitives-traits/arbitrary", - "reth-ethereum-forks/arbitrary" + "reth-ethereum-primitives/arbitrary", + "alloy-chains/arbitrary", + "dep:arbitrary", + "dep:proptest", + "dep:proptest-arbitrary-interop", + "reth-chainspec/arbitrary", + "alloy-consensus/arbitrary", + "alloy-eips/arbitrary", + "alloy-primitives/arbitrary", + "reth-primitives-traits/arbitrary", + "reth-ethereum-forks/arbitrary", ] serde = [ - "dep:serde", - "alloy-chains/serde", - "alloy-consensus/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "bytes/serde", - "rand/serde", - "reth-primitives-traits/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "alloy-chains/serde", + "alloy-consensus/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "bytes/serde", + "rand/serde", + "reth-primitives-traits/serde", + "reth-ethereum-forks/serde", ] diff --git a/crates/net/eth-wire/Cargo.toml b/crates/net/eth-wire/Cargo.toml index 3dd632de5..049029b69 100644 --- a/crates/net/eth-wire/Cargo.toml +++ b/crates/net/eth-wire/Cargo.toml @@ -53,11 +53,7 @@ test-fuzz.workspace = true tokio = { workspace = true, features = ["rt", "rt-multi-thread"] } tokio-util = { workspace = true, features = ["io", "codec"] } rand.workspace = true -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } arbitrary = { workspace = true, features = ["derive"] } proptest.workspace = true @@ -68,28 +64,28 @@ alloy-eips.workspace = true [features] arbitrary = [ - "reth-eth-wire-types/arbitrary", - "dep:arbitrary", - "alloy-eips/arbitrary", - "alloy-primitives/arbitrary", - "reth-codecs/arbitrary", - "alloy-chains/arbitrary", - "reth-primitives-traits/arbitrary", - "reth-ethereum-forks/arbitrary", - "reth-primitives/arbitrary" + "reth-eth-wire-types/arbitrary", + "dep:arbitrary", + "alloy-eips/arbitrary", + "alloy-primitives/arbitrary", + "reth-codecs/arbitrary", + "alloy-chains/arbitrary", + "reth-primitives-traits/arbitrary", + "reth-ethereum-forks/arbitrary", + "reth-primitives/arbitrary", ] serde = [ - "dep:serde", - "reth-eth-wire-types/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "bytes/serde", - "rand/serde", - "secp256k1/serde", - "reth-codecs/serde", - "alloy-chains/serde", - "reth-primitives-traits/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "reth-eth-wire-types/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "bytes/serde", + "rand/serde", + "secp256k1/serde", + "reth-codecs/serde", + "alloy-chains/serde", + "reth-primitives-traits/serde", + "reth-ethereum-forks/serde", ] [[test]] diff --git a/crates/net/network-api/Cargo.toml b/crates/net/network-api/Cargo.toml index efb0257fc..46f8cf94d 100644 --- a/crates/net/network-api/Cargo.toml +++ b/crates/net/network-api/Cargo.toml @@ -41,10 +41,10 @@ derive_more.workspace = true [features] default = ["serde"] serde = [ - "dep:serde", - "reth-eth-wire-types/serde", - "reth-network-types/serde", - "alloy-primitives/serde", - "enr/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "reth-eth-wire-types/serde", + "reth-network-types/serde", + "alloy-primitives/serde", + "enr/serde", + "reth-ethereum-forks/serde", ] diff --git a/crates/net/network-types/Cargo.toml b/crates/net/network-types/Cargo.toml index 7068371fb..5bc008453 100644 --- a/crates/net/network-types/Cargo.toml +++ b/crates/net/network-types/Cargo.toml @@ -28,8 +28,8 @@ tracing.workspace = true [features] serde = [ - "dep:serde", - "dep:humantime-serde", - "alloy-eip2124/serde" + "dep:serde", + "dep:humantime-serde", + "alloy-eip2124/serde", ] test-utils = [] diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index 97be9b170..39bbb9f0e 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -105,37 +105,37 @@ criterion = { workspace = true, features = ["async_tokio", "html_reports"] } default = ["serde"] geth-tests = [] serde = [ - "dep:serde", - "secp256k1/serde", - "enr/serde", - "reth-network-types/serde", - "reth-dns-discovery/serde", - "reth-eth-wire/serde", - "reth-eth-wire-types/serde", - "alloy-consensus/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "discv5/serde", - "parking_lot/serde", - "rand/serde", - "smallvec/serde", - "url/serde", - "reth-primitives-traits/serde", - "reth-ethereum-forks/serde", - "reth-provider/serde" + "dep:serde", + "secp256k1/serde", + "enr/serde", + "reth-network-types/serde", + "reth-dns-discovery/serde", + "reth-eth-wire/serde", + "reth-eth-wire-types/serde", + "alloy-consensus/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "discv5/serde", + "parking_lot/serde", + "rand/serde", + "smallvec/serde", + "url/serde", + "reth-primitives-traits/serde", + "reth-ethereum-forks/serde", + "reth-provider/serde", ] test-utils = [ - "dep:tempfile", - "reth-transaction-pool/test-utils", - "reth-network-types/test-utils", - "reth-chainspec/test-utils", - "reth-consensus/test-utils", - "reth-discv4/test-utils", - "reth-network/test-utils", - "reth-network-p2p/test-utils", - "reth-primitives/test-utils", - "reth-primitives-traits/test-utils", - "reth-provider/test-utils" + "dep:tempfile", + "reth-transaction-pool/test-utils", + "reth-network-types/test-utils", + "reth-chainspec/test-utils", + "reth-consensus/test-utils", + "reth-discv4/test-utils", + "reth-network/test-utils", + "reth-network-p2p/test-utils", + "reth-primitives/test-utils", + "reth-primitives-traits/test-utils", + "reth-provider/test-utils", ] [[bench]] diff --git a/crates/net/p2p/Cargo.toml b/crates/net/p2p/Cargo.toml index 2c61da751..eb49c24f4 100644 --- a/crates/net/p2p/Cargo.toml +++ b/crates/net/p2p/Cargo.toml @@ -45,19 +45,19 @@ tokio = { workspace = true, features = ["full"] } [features] default = ["std"] test-utils = [ - "reth-consensus/test-utils", - "parking_lot", - "reth-network-types/test-utils", - "reth-primitives/test-utils", - "reth-primitives-traits/test-utils" + "reth-consensus/test-utils", + "parking_lot", + "reth-network-types/test-utils", + "reth-primitives/test-utils", + "reth-primitives-traits/test-utils", ] std = [ - "reth-consensus/std", - "reth-primitives/std", - "alloy-eips/std", - "alloy-primitives/std", - "reth-primitives-traits/std", - "alloy-consensus/std", - "derive_more/std", - "reth-network-peers/std" + "reth-consensus/std", + "reth-primitives/std", + "alloy-eips/std", + "alloy-primitives/std", + "reth-primitives-traits/std", + "alloy-consensus/std", + "derive_more/std", + "reth-network-peers/std", ] diff --git a/crates/net/peers/Cargo.toml b/crates/net/peers/Cargo.toml index b099da918..bbdb51165 100644 --- a/crates/net/peers/Cargo.toml +++ b/crates/net/peers/Cargo.toml @@ -12,7 +12,6 @@ description = "Network peer types and utils" workspace = true [dependencies] - # eth alloy-primitives = { workspace = true, features = ["rlp"] } alloy-rlp = { workspace = true, features = ["derive", "core-net", "core-error"] } @@ -38,13 +37,13 @@ tokio = { workspace = true, features = ["net", "macros", "rt"] } [features] default = ["std"] std = [ - "alloy-primitives/std", - "alloy-rlp/std", - "secp256k1?/std", - "serde_with/std", - "thiserror/std", - "url/std", - "serde_json/std" + "alloy-primitives/std", + "alloy-rlp/std", + "secp256k1?/std", + "serde_with/std", + "thiserror/std", + "url/std", + "serde_json/std", ] secp256k1 = ["dep:secp256k1", "enr/secp256k1"] net = ["std", "dep:tokio", "tokio?/net"] diff --git a/crates/node/builder/Cargo.toml b/crates/node/builder/Cargo.toml index 9f08507f9..b455f6af4 100644 --- a/crates/node/builder/Cargo.toml +++ b/crates/node/builder/Cargo.toml @@ -63,20 +63,11 @@ alloy-eips = { workspace = true, features = ["kzg"] } ## async futures.workspace = true -tokio = { workspace = true, features = [ - "sync", - "macros", - "time", - "rt-multi-thread", -] } +tokio = { workspace = true, features = ["sync", "macros", "time", "rt-multi-thread"] } tokio-stream.workspace = true ## crypto -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } ## misc aquamarine.workspace = true diff --git a/crates/node/core/Cargo.toml b/crates/node/core/Cargo.toml index 57762554b..07473eb07 100644 --- a/crates/node/core/Cargo.toml +++ b/crates/node/core/Cargo.toml @@ -61,11 +61,7 @@ shellexpand.workspace = true tracing.workspace = true # crypto -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } # async futures.workspace = true diff --git a/crates/node/types/Cargo.toml b/crates/node/types/Cargo.toml index fefe98a2c..26296adf7 100644 --- a/crates/node/types/Cargo.toml +++ b/crates/node/types/Cargo.toml @@ -22,7 +22,7 @@ reth-payload-primitives.workspace = true [features] default = ["std"] std = [ - "reth-primitives-traits/std", - "reth-chainspec/std", - "reth-engine-primitives/std" + "reth-primitives-traits/std", + "reth-chainspec/std", + "reth-engine-primitives/std", ] diff --git a/crates/optimism/bin/Cargo.toml b/crates/optimism/bin/Cargo.toml index b182a4f27..a4c290b47 100644 --- a/crates/optimism/bin/Cargo.toml +++ b/crates/optimism/bin/Cargo.toml @@ -38,19 +38,19 @@ tracy-allocator = ["reth-cli-util/tracy-allocator"] asm-keccak = ["reth-optimism-cli/asm-keccak", "reth-optimism-node/asm-keccak"] optimism = [ - "reth-optimism-cli/optimism", - "reth-optimism-node/optimism", - "reth-optimism-consensus/optimism", - "reth-optimism-evm/optimism", - "reth-optimism-payload-builder/optimism", - "reth-optimism-rpc/optimism", - "reth-provider/optimism", - "reth-optimism-primitives/optimism", + "reth-optimism-cli/optimism", + "reth-optimism-node/optimism", + "reth-optimism-consensus/optimism", + "reth-optimism-evm/optimism", + "reth-optimism-payload-builder/optimism", + "reth-optimism-rpc/optimism", + "reth-provider/optimism", + "reth-optimism-primitives/optimism", ] dev = [ - "reth-optimism-cli/dev", - "reth-optimism-primitives/arbitrary", + "reth-optimism-cli/dev", + "reth-optimism-primitives/arbitrary", ] min-error-logs = ["tracing/release_max_level_error"] diff --git a/crates/optimism/chainspec/Cargo.toml b/crates/optimism/chainspec/Cargo.toml index 1f5ecdffc..404402a6c 100644 --- a/crates/optimism/chainspec/Cargo.toml +++ b/crates/optimism/chainspec/Cargo.toml @@ -48,20 +48,20 @@ op-alloy-rpc-types.workspace = true [features] default = ["std"] std = [ - "alloy-chains/std", - "alloy-genesis/std", - "alloy-primitives/std", - "alloy-eips/std", - "op-alloy-rpc-types/std", - "reth-chainspec/std", - "reth-ethereum-forks/std", - "reth-primitives-traits/std", - "reth-optimism-forks/std", - "alloy-consensus/std", - "once_cell/std", - "derive_more/std", - "reth-network-peers/std", - "thiserror/std", - "serde_json/std", - "op-alloy-consensus/std" + "alloy-chains/std", + "alloy-genesis/std", + "alloy-primitives/std", + "alloy-eips/std", + "op-alloy-rpc-types/std", + "reth-chainspec/std", + "reth-ethereum-forks/std", + "reth-primitives-traits/std", + "reth-optimism-forks/std", + "alloy-consensus/std", + "once_cell/std", + "derive_more/std", + "reth-network-peers/std", + "thiserror/std", + "serde_json/std", + "op-alloy-consensus/std", ] diff --git a/crates/optimism/cli/Cargo.toml b/crates/optimism/cli/Cargo.toml index 243dc303b..daa6fbab3 100644 --- a/crates/optimism/cli/Cargo.toml +++ b/crates/optimism/cli/Cargo.toml @@ -55,13 +55,7 @@ derive_more = { workspace = true, optional = true } serde = { workspace = true, optional = true } clap = { workspace = true, features = ["derive", "env"] } - -tokio = { workspace = true, features = [ - "sync", - "macros", - "time", - "rt-multi-thread", -] } +tokio = { workspace = true, features = ["sync", "macros", "time", "rt-multi-thread"] } tokio-util = { workspace = true, features = ["codec"] } tracing.workspace = true eyre.workspace = true @@ -70,7 +64,6 @@ eyre.workspace = true proptest = { workspace = true, optional = true } op-alloy-consensus = { workspace = true, optional = true } - [dev-dependencies] tempfile.workspace = true reth-stages = { workspace = true, features = ["test-utils"] } @@ -80,18 +73,18 @@ reth-cli-commands.workspace = true [features] optimism = [ "op-alloy-consensus", - "alloy-consensus", - "dep:derive_more", - "dep:serde", - "reth-optimism-evm/optimism", - "reth-provider/optimism", - "reth-node-core/optimism", - "reth-optimism-node/optimism", - "reth-execution-types/optimism", - "reth-db/optimism", - "reth-db-api/optimism", + "alloy-consensus", + "dep:derive_more", + "dep:serde", + "reth-optimism-evm/optimism", + "reth-provider/optimism", + "reth-node-core/optimism", + "reth-optimism-node/optimism", + "reth-execution-types/optimism", + "reth-db/optimism", + "reth-db-api/optimism", "reth-optimism-primitives/optimism", - "reth-downloaders/optimism" + "reth-downloaders/optimism", ] asm-keccak = [ "alloy-primitives/asm-keccak", @@ -103,19 +96,19 @@ asm-keccak = [ # Jemalloc feature for vergen to generate correct env vars jemalloc = [ "reth-node-core/jemalloc", - "reth-node-metrics/jemalloc" + "reth-node-metrics/jemalloc", ] dev = [ "dep:proptest", - "reth-cli-commands/arbitrary" + "reth-cli-commands/arbitrary", ] serde = [ - "alloy-consensus?/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "op-alloy-consensus?/serde", - "reth-execution-types/serde", - "reth-provider/serde", - "reth-optimism-primitives/serde", + "alloy-consensus?/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "op-alloy-consensus?/serde", + "reth-execution-types/serde", + "reth-provider/serde", + "reth-optimism-primitives/serde", ] diff --git a/crates/optimism/evm/Cargo.toml b/crates/optimism/evm/Cargo.toml index ea3fe19bd..fdc84af8e 100644 --- a/crates/optimism/evm/Cargo.toml +++ b/crates/optimism/evm/Cargo.toml @@ -57,30 +57,30 @@ reth-optimism-primitives = { workspace = true, features = ["arbitrary"] } [features] default = ["std"] std = [ - "reth-consensus/std", - "reth-primitives/std", - "reth-revm/std", - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "revm-primitives/std", - "reth-primitives-traits/std", - "revm/std", - "reth-optimism-primitives/std", - "reth-ethereum-forks/std", - "derive_more/std", - "reth-optimism-forks/std", - "thiserror/std", - "op-alloy-consensus/std", - "reth-chainspec/std", - "reth-optimism-consensus/std", - "reth-consensus-common/std", + "reth-consensus/std", + "reth-primitives/std", + "reth-revm/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "revm-primitives/std", + "reth-primitives-traits/std", + "revm/std", + "reth-optimism-primitives/std", + "reth-ethereum-forks/std", + "derive_more/std", + "reth-optimism-forks/std", + "thiserror/std", + "op-alloy-consensus/std", + "reth-chainspec/std", + "reth-optimism-consensus/std", + "reth-consensus-common/std", ] optimism = [ - "reth-execution-types/optimism", - "reth-optimism-consensus/optimism", - "revm/optimism", - "revm-primitives/optimism", - "reth-optimism-primitives/optimism", + "reth-execution-types/optimism", + "reth-optimism-consensus/optimism", + "revm/optimism", + "revm-primitives/optimism", + "reth-optimism-primitives/optimism", ] diff --git a/crates/optimism/hardforks/Cargo.toml b/crates/optimism/hardforks/Cargo.toml index 5ac5f6fe6..55c0e5892 100644 --- a/crates/optimism/hardforks/Cargo.toml +++ b/crates/optimism/hardforks/Cargo.toml @@ -29,15 +29,15 @@ once_cell.workspace = true [features] default = ["std"] std = [ - "alloy-primitives/std", - "once_cell/std", - "serde?/std", - "alloy-chains/std", - "reth-ethereum-forks/std" + "alloy-primitives/std", + "once_cell/std", + "serde?/std", + "alloy-chains/std", + "reth-ethereum-forks/std", ] serde = [ - "dep:serde", - "alloy-chains/serde", - "alloy-primitives/serde", - "reth-ethereum-forks/serde" + "dep:serde", + "alloy-chains/serde", + "alloy-primitives/serde", + "reth-ethereum-forks/serde", ] diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 76c3e1ae5..0b258af71 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -90,49 +90,49 @@ futures.workspace = true [features] default = ["reth-codec"] optimism = [ - "reth-provider/optimism", - "reth-optimism-evm/optimism", - "reth-optimism-payload-builder/optimism", - "revm/optimism", - "reth-optimism-rpc/optimism", - "reth-engine-local/op", - "reth-optimism-consensus/optimism", - "reth-db/optimism", - "reth-optimism-node/optimism", - "reth-node-core/optimism", + "reth-provider/optimism", + "reth-optimism-evm/optimism", + "reth-optimism-payload-builder/optimism", + "revm/optimism", + "reth-optimism-rpc/optimism", + "reth-engine-local/op", + "reth-optimism-consensus/optimism", + "reth-db/optimism", + "reth-optimism-node/optimism", + "reth-node-core/optimism", "reth-optimism-primitives/optimism", ] asm-keccak = [ - "reth-primitives/asm-keccak", - "alloy-primitives/asm-keccak", - "revm/asm-keccak", - "reth-optimism-node/asm-keccak", - "reth-node-core/asm-keccak" + "reth-primitives/asm-keccak", + "alloy-primitives/asm-keccak", + "revm/asm-keccak", + "reth-optimism-node/asm-keccak", + "reth-node-core/asm-keccak", ] js-tracer = [ - "reth-node-builder/js-tracer" + "reth-node-builder/js-tracer", ] test-utils = [ - "reth-tasks", - "reth-e2e-test-utils", - "alloy-genesis", - "tokio", - "reth-node-builder/test-utils", - "reth-chainspec/test-utils", - "reth-consensus/test-utils", - "reth-evm/test-utils", - "reth-network/test-utils", - "reth-payload-builder/test-utils", - "reth-primitives/test-utils", - "reth-revm/test-utils", - "reth-db/test-utils", - "reth-provider/test-utils", - "reth-transaction-pool/test-utils", - "reth-trie-db/test-utils", - "revm/test-utils", - "reth-optimism-node/test-utils", - "reth-optimism-primitives/arbitrary", - "reth-primitives-traits/test-utils" + "reth-tasks", + "reth-e2e-test-utils", + "alloy-genesis", + "tokio", + "reth-node-builder/test-utils", + "reth-chainspec/test-utils", + "reth-consensus/test-utils", + "reth-evm/test-utils", + "reth-network/test-utils", + "reth-payload-builder/test-utils", + "reth-primitives/test-utils", + "reth-revm/test-utils", + "reth-db/test-utils", + "reth-provider/test-utils", + "reth-transaction-pool/test-utils", + "reth-trie-db/test-utils", + "revm/test-utils", + "reth-optimism-node/test-utils", + "reth-optimism-primitives/arbitrary", + "reth-primitives-traits/test-utils", ] reth-codec = [ "reth-primitives/reth-codec", diff --git a/crates/optimism/payload/Cargo.toml b/crates/optimism/payload/Cargo.toml index 2f7b20af3..855fdd3a6 100644 --- a/crates/optimism/payload/Cargo.toml +++ b/crates/optimism/payload/Cargo.toml @@ -55,10 +55,10 @@ sha2.workspace = true [features] optimism = [ - "reth-provider/optimism", - "reth-optimism-evm/optimism", - "revm/optimism", - "reth-execution-types/optimism", - "reth-optimism-consensus/optimism", - "reth-optimism-primitives/optimism" + "reth-provider/optimism", + "reth-optimism-evm/optimism", + "revm/optimism", + "reth-execution-types/optimism", + "reth-optimism-consensus/optimism", + "reth-optimism-primitives/optimism", ] diff --git a/crates/optimism/primitives/Cargo.toml b/crates/optimism/primitives/Cargo.toml index 3938a70ec..5d3d04878 100644 --- a/crates/optimism/primitives/Cargo.toml +++ b/crates/optimism/primitives/Cargo.toml @@ -53,19 +53,19 @@ rand.workspace = true [features] default = ["std"] std = [ - "reth-primitives-traits/std", - "reth-codecs?/std", - "alloy-consensus/std", - "alloy-eips/std", - "alloy-primitives/std", - "serde?/std", - "bytes?/std", - "derive_more/std", - "revm-primitives?/std", - "secp256k1?/std", - "alloy-rlp/std", - "reth-zstd-compressors?/std", - "op-alloy-consensus/std", + "reth-primitives-traits/std", + "reth-codecs?/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-primitives/std", + "serde?/std", + "bytes?/std", + "derive_more/std", + "revm-primitives?/std", + "secp256k1?/std", + "alloy-rlp/std", + "reth-zstd-compressors?/std", + "op-alloy-consensus/std", ] reth-codec = [ "dep:reth-codecs", @@ -76,7 +76,7 @@ reth-codec = [ "reth-codecs?/op", "dep:bytes", "dep:modular-bitfield", - "dep:reth-zstd-compressors" + "dep:reth-zstd-compressors", ] serde = [ "dep:serde", @@ -92,10 +92,10 @@ serde = [ "secp256k1?/serde", ] serde-bincode-compat = [ - "alloy-consensus/serde-bincode-compat", - "alloy-eips/serde-bincode-compat", - "op-alloy-consensus/serde-bincode-compat", - "reth-primitives-traits/serde-bincode-compat" + "alloy-consensus/serde-bincode-compat", + "alloy-eips/serde-bincode-compat", + "op-alloy-consensus/serde-bincode-compat", + "reth-primitives-traits/serde-bincode-compat", ] arbitrary = [ "dep:arbitrary", @@ -112,5 +112,5 @@ arbitrary = [ ] optimism = [ "dep:revm-primitives", - "revm-primitives/optimism", + "revm-primitives/optimism", ] diff --git a/crates/optimism/rpc/Cargo.toml b/crates/optimism/rpc/Cargo.toml index 13da62a14..7e87b98f7 100644 --- a/crates/optimism/rpc/Cargo.toml +++ b/crates/optimism/rpc/Cargo.toml @@ -69,10 +69,10 @@ reth-optimism-chainspec.workspace = true [features] optimism = [ - "reth-optimism-evm/optimism", - "reth-provider/optimism", - "revm/optimism", - "reth-optimism-consensus/optimism", - "reth-optimism-payload-builder/optimism", - "reth-optimism-primitives/optimism", + "reth-optimism-evm/optimism", + "reth-provider/optimism", + "revm/optimism", + "reth-optimism-consensus/optimism", + "reth-optimism-payload-builder/optimism", + "reth-optimism-primitives/optimism", ] diff --git a/crates/optimism/storage/Cargo.toml b/crates/optimism/storage/Cargo.toml index ae2bf1375..708ae151a 100644 --- a/crates/optimism/storage/Cargo.toml +++ b/crates/optimism/storage/Cargo.toml @@ -21,6 +21,6 @@ reth-stages-types.workspace = true [features] optimism = [ - "reth-codecs/op", - "reth-db-api/optimism" + "reth-codecs/op", + "reth-db-api/optimism", ] diff --git a/crates/payload/basic/Cargo.toml b/crates/payload/basic/Cargo.toml index 9fc7760de..d8e3b0faf 100644 --- a/crates/payload/basic/Cargo.toml +++ b/crates/payload/basic/Cargo.toml @@ -23,7 +23,7 @@ reth-payload-builder-primitives.workspace = true reth-payload-primitives.workspace = true reth-tasks.workspace = true reth-evm.workspace = true -reth-revm.workspace=true +reth-revm.workspace = true # revm revm.workspace = true diff --git a/crates/payload/builder/Cargo.toml b/crates/payload/builder/Cargo.toml index 9dddbc7e4..33bed09f6 100644 --- a/crates/payload/builder/Cargo.toml +++ b/crates/payload/builder/Cargo.toml @@ -46,9 +46,9 @@ alloy-consensus.workspace = true [features] test-utils = [ - "alloy-primitives", - "reth-chain-state/test-utils", - "reth-primitives/test-utils", - "revm/test-utils", - "reth-primitives-traits/test-utils" + "alloy-primitives", + "reth-chain-state/test-utils", + "reth-primitives/test-utils", + "revm/test-utils", + "reth-primitives-traits/test-utils", ] diff --git a/crates/payload/primitives/Cargo.toml b/crates/payload/primitives/Cargo.toml index 78f054e6d..4d1649184 100644 --- a/crates/payload/primitives/Cargo.toml +++ b/crates/payload/primitives/Cargo.toml @@ -47,4 +47,4 @@ std = [ "serde/std", "thiserror/std", ] -op = ["dep:op-alloy-rpc-types-engine"] \ No newline at end of file +op = ["dep:op-alloy-rpc-types-engine"] diff --git a/crates/payload/util/Cargo.toml b/crates/payload/util/Cargo.toml index 2da8dc660..4eed45331 100644 --- a/crates/payload/util/Cargo.toml +++ b/crates/payload/util/Cargo.toml @@ -17,4 +17,4 @@ reth-primitives.workspace = true # alloy alloy-primitives.workspace = true -alloy-consensus.workspace = true \ No newline at end of file +alloy-consensus.workspace = true diff --git a/crates/primitives-traits/Cargo.toml b/crates/primitives-traits/Cargo.toml index 7f0c98fc8..90e8c9658 100644 --- a/crates/primitives-traits/Cargo.toml +++ b/crates/primitives-traits/Cargo.toml @@ -28,9 +28,7 @@ revm-primitives.workspace = true op-alloy-consensus = { workspace = true, optional = true } # crypto -secp256k1 = { workspace = true, features = [ - "recovery", -], optional = true } +secp256k1 = { workspace = true, features = ["recovery"], optional = true } k256.workspace = true # misc @@ -44,7 +42,7 @@ thiserror.workspace = true # required by reth-codecs modular-bitfield = { workspace = true, optional = true } -serde = { workspace = true, optional = true} +serde = { workspace = true, optional = true } # arbitrary utils arbitrary = { workspace = true, features = ["derive"], optional = true } @@ -60,11 +58,7 @@ alloy-primitives = { workspace = true, features = ["arbitrary", "serde"] } alloy-consensus = { workspace = true, features = ["arbitrary", "serde"] } arbitrary = { workspace = true, features = ["derive"] } -secp256k1 = { workspace = true, features = [ - "recovery", - "global-context", - "rand" -] } +secp256k1 = { workspace = true, features = ["recovery", "global-context", "rand"] } bincode.workspace = true byteorder.workspace = true proptest-arbitrary-interop.workspace = true @@ -78,77 +72,77 @@ modular-bitfield.workspace = true [features] default = ["std"] std = [ - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "revm-primitives/std", - "serde?/std", - "serde_with?/std", - "alloy-rlp/std", - "bytes/std", - "derive_more/std", - "k256/std", - "once_cell/std", - "secp256k1?/std", - "thiserror/std", - "alloy-trie/std", - "op-alloy-consensus?/std", - "serde_json/std", - "reth-chainspec/std" + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "revm-primitives/std", + "serde?/std", + "serde_with?/std", + "alloy-rlp/std", + "bytes/std", + "derive_more/std", + "k256/std", + "once_cell/std", + "secp256k1?/std", + "thiserror/std", + "alloy-trie/std", + "op-alloy-consensus?/std", + "serde_json/std", + "reth-chainspec/std", ] secp256k1 = ["dep:secp256k1"] test-utils = [ - "arbitrary", - "reth-codecs?/test-utils", - "reth-chainspec/test-utils" + "arbitrary", + "reth-codecs?/test-utils", + "reth-chainspec/test-utils", ] arbitrary = [ - "std", - "alloy-consensus/arbitrary", - "alloy-primitives/arbitrary", - "dep:arbitrary", - "dep:proptest", - "dep:proptest-arbitrary-interop", - "alloy-eips/arbitrary", - "revm-primitives/arbitrary", - "reth-codecs?/arbitrary", - "secp256k1?/global-context", - "secp256k1?/rand", - "op-alloy-consensus?/arbitrary", - "alloy-trie/arbitrary", - "reth-chainspec/arbitrary" + "std", + "alloy-consensus/arbitrary", + "alloy-primitives/arbitrary", + "dep:arbitrary", + "dep:proptest", + "dep:proptest-arbitrary-interop", + "alloy-eips/arbitrary", + "revm-primitives/arbitrary", + "reth-codecs?/arbitrary", + "secp256k1?/global-context", + "secp256k1?/rand", + "op-alloy-consensus?/arbitrary", + "alloy-trie/arbitrary", + "reth-chainspec/arbitrary", ] serde-bincode-compat = [ - "serde", - "serde_with", - "alloy-consensus/serde-bincode-compat", - "alloy-eips/serde-bincode-compat", - "op-alloy-consensus?/serde-bincode-compat" + "serde", + "serde_with", + "alloy-consensus/serde-bincode-compat", + "alloy-eips/serde-bincode-compat", + "op-alloy-consensus?/serde-bincode-compat", ] serde = [ - "dep:serde", - "alloy-consensus/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "bytes/serde", - "rand/serde", - "reth-codecs?/serde", - "revm-primitives/serde", - "revm-primitives/serde", - "op-alloy-consensus?/serde", - "k256/serde", - "secp256k1?/serde", - "alloy-trie/serde" + "dep:serde", + "alloy-consensus/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "bytes/serde", + "rand/serde", + "reth-codecs?/serde", + "revm-primitives/serde", + "revm-primitives/serde", + "op-alloy-consensus?/serde", + "k256/serde", + "secp256k1?/serde", + "alloy-trie/serde", ] reth-codec = [ - "dep:reth-codecs", - "dep:modular-bitfield", - "dep:byteorder", + "dep:reth-codecs", + "dep:modular-bitfield", + "dep:byteorder", ] op = [ - "dep:op-alloy-consensus", + "dep:op-alloy-consensus", ] rayon = [ - "dep:rayon", + "dep:rayon", ] diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 064487e72..bdccfadcc 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -49,66 +49,62 @@ serde_json.workspace = true reth-codecs.workspace = true criterion.workspace = true -pprof = { workspace = true, features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] } [features] default = ["c-kzg", "alloy-compat", "std", "reth-codec", "secp256k1"] std = [ - "reth-primitives-traits/std", - "alloy-consensus/std", - "alloy-eips/std", - "alloy-genesis/std", - "alloy-primitives/std", - "once_cell/std", - "serde/std", - "reth-ethereum-forks/std", - "derive_more/std", - "serde_json/std", - "reth-ethereum-primitives/std", - "alloy-rlp/std" + "reth-primitives-traits/std", + "alloy-consensus/std", + "alloy-eips/std", + "alloy-genesis/std", + "alloy-primitives/std", + "once_cell/std", + "serde/std", + "reth-ethereum-forks/std", + "derive_more/std", + "serde_json/std", + "reth-ethereum-primitives/std", + "alloy-rlp/std", ] reth-codec = [ - "std", - "reth-primitives-traits/reth-codec", - "reth-ethereum-primitives/reth-codec" + "std", + "reth-primitives-traits/reth-codec", + "reth-ethereum-primitives/reth-codec", ] asm-keccak = ["alloy-primitives/asm-keccak"] arbitrary = [ - "dep:arbitrary", - "alloy-eips/arbitrary", - "reth-codec", - "reth-ethereum-forks/arbitrary", - "reth-primitives-traits/arbitrary", - "alloy-consensus/arbitrary", - "alloy-primitives/arbitrary", - "reth-ethereum-primitives/arbitrary", - "reth-codecs/arbitrary" + "dep:arbitrary", + "alloy-eips/arbitrary", + "reth-codec", + "reth-ethereum-forks/arbitrary", + "reth-primitives-traits/arbitrary", + "alloy-consensus/arbitrary", + "alloy-primitives/arbitrary", + "reth-ethereum-primitives/arbitrary", + "reth-codecs/arbitrary", ] secp256k1 = [ - "reth-primitives-traits/secp256k1", + "reth-primitives-traits/secp256k1", ] c-kzg = [ - "dep:c-kzg", - "alloy-consensus/kzg", - "alloy-eips/kzg", + "dep:c-kzg", + "alloy-consensus/kzg", + "alloy-eips/kzg", ] alloy-compat = [ - "reth-ethereum-primitives/alloy-compat" + "reth-ethereum-primitives/alloy-compat", ] test-utils = [ - "reth-primitives-traits/test-utils", - "arbitrary", - "reth-codecs/test-utils" + "reth-primitives-traits/test-utils", + "arbitrary", + "reth-codecs/test-utils", ] serde-bincode-compat = [ - "alloy-eips/serde-bincode-compat", - "alloy-consensus/serde-bincode-compat", - "reth-primitives-traits/serde-bincode-compat", - "reth-ethereum-primitives/serde-bincode-compat" + "alloy-eips/serde-bincode-compat", + "alloy-consensus/serde-bincode-compat", + "reth-primitives-traits/serde-bincode-compat", + "reth-ethereum-primitives/serde-bincode-compat", ] [[bench]] diff --git a/crates/prune/types/Cargo.toml b/crates/prune/types/Cargo.toml index 750935113..7764fd837 100644 --- a/crates/prune/types/Cargo.toml +++ b/crates/prune/types/Cargo.toml @@ -32,10 +32,10 @@ toml.workspace = true [features] test-utils = [ - "dep:arbitrary", - "reth-codecs/test-utils" + "dep:arbitrary", + "reth-codecs/test-utils", ] arbitrary = [ - "alloy-primitives/arbitrary", - "reth-codecs/arbitrary" + "alloy-primitives/arbitrary", + "reth-codecs/arbitrary", ] diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index 6501538d9..2b5c8d668 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -35,26 +35,26 @@ alloy-consensus.workspace = true [features] default = ["std"] std = [ - "reth-primitives/std", - "alloy-primitives/std", - "revm/std", - "alloy-eips/std", - "alloy-consensus/std", - "reth-ethereum-forks/std" + "reth-primitives/std", + "alloy-primitives/std", + "revm/std", + "alloy-eips/std", + "alloy-consensus/std", + "reth-ethereum-forks/std", ] witness = ["dep:reth-trie"] test-utils = [ - "dep:reth-trie", - "reth-primitives/test-utils", - "reth-trie?/test-utils", - "revm/test-utils", - "reth-prune-types/test-utils", + "dep:reth-trie", + "reth-primitives/test-utils", + "reth-trie?/test-utils", + "revm/test-utils", + "reth-prune-types/test-utils", ] serde = [ - "revm/serde", - "alloy-eips/serde", - "alloy-primitives/serde", - "alloy-consensus/serde", - "reth-trie?/serde", - "reth-ethereum-forks/serde" + "revm/serde", + "alloy-eips/serde", + "alloy-primitives/serde", + "alloy-consensus/serde", + "reth-trie?/serde", + "reth-ethereum-forks/serde", ] diff --git a/crates/rpc/ipc/Cargo.toml b/crates/rpc/ipc/Cargo.toml index 42bb64d53..bd34c474f 100644 --- a/crates/rpc/ipc/Cargo.toml +++ b/crates/rpc/ipc/Cargo.toml @@ -12,7 +12,6 @@ description = "IPC support for reth" workspace = true [dependencies] - # async/net futures.workspace = true tokio = { workspace = true, features = ["net", "time", "rt-multi-thread"] } diff --git a/crates/rpc/rpc-eth-types/Cargo.toml b/crates/rpc/rpc-eth-types/Cargo.toml index 11bf6c623..f306eefbd 100644 --- a/crates/rpc/rpc-eth-types/Cargo.toml +++ b/crates/rpc/rpc-eth-types/Cargo.toml @@ -62,6 +62,5 @@ itertools.workspace = true [dev-dependencies] serde_json.workspace = true - [features] js-tracer = ["revm-inspectors/js-tracer"] diff --git a/crates/rpc/rpc-layer/Cargo.toml b/crates/rpc/rpc-layer/Cargo.toml index d44e5e89f..8d567fcf1 100644 --- a/crates/rpc/rpc-layer/Cargo.toml +++ b/crates/rpc/rpc-layer/Cargo.toml @@ -24,4 +24,4 @@ tracing.workspace = true reqwest.workspace = true tokio = { workspace = true, features = ["macros"] } jsonrpsee = { workspace = true, features = ["server"] } -http-body-util.workspace=true +http-body-util.workspace = true diff --git a/crates/rpc/rpc/Cargo.toml b/crates/rpc/rpc/Cargo.toml index 43fe54f12..54ba3a1b9 100644 --- a/crates/rpc/rpc/Cargo.toml +++ b/crates/rpc/rpc/Cargo.toml @@ -56,11 +56,7 @@ alloy-rpc-types-txpool.workspace = true alloy-rpc-types-admin.workspace = true alloy-rpc-types-engine.workspace = true alloy-serde.workspace = true -revm = { workspace = true, features = [ - "optional_block_gas_limit", - "optional_eip3607", - "optional_no_base_fee", -] } +revm = { workspace = true, features = ["optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee"] } revm-primitives = { workspace = true, features = ["serde"] } # rpc diff --git a/crates/stages/api/Cargo.toml b/crates/stages/api/Cargo.toml index ffa34afa7..515c27124 100644 --- a/crates/stages/api/Cargo.toml +++ b/crates/stages/api/Cargo.toml @@ -49,9 +49,9 @@ reth-testing-utils.workspace = true [features] test-utils = [ - "reth-consensus/test-utils", - "reth-network-p2p/test-utils", - "reth-primitives-traits/test-utils", - "reth-provider/test-utils", - "reth-stages-types/test-utils" + "reth-consensus/test-utils", + "reth-network-p2p/test-utils", + "reth-primitives-traits/test-utils", + "reth-provider/test-utils", + "reth-stages-types/test-utils", ] diff --git a/crates/stages/stages/Cargo.toml b/crates/stages/stages/Cargo.toml index 2b519558c..7b7a9532c 100644 --- a/crates/stages/stages/Cargo.toml +++ b/crates/stages/stages/Cargo.toml @@ -25,9 +25,7 @@ reth-exex.workspace = true reth-fs-util.workspace = true reth-network-p2p.workspace = true reth-primitives = { workspace = true, features = ["secp256k1"] } -reth-primitives-traits = { workspace = true, features = [ - "serde-bincode-compat", -] } +reth-primitives-traits = { workspace = true, features = ["serde-bincode-compat"] } reth-provider.workspace = true reth-execution-types.workspace = true reth-prune.workspace = true @@ -59,10 +57,7 @@ num-traits = "0.2.15" tempfile = { workspace = true, optional = true } bincode.workspace = true blake3.workspace = true -reqwest = { workspace = true, default-features = false, features = [ - "rustls-tls-native-roots", - "blocking" -] } +reqwest = { workspace = true, default-features = false, features = ["rustls-tls-native-roots", "blocking"] } serde = { workspace = true, features = ["derive"] } [dev-dependencies] @@ -96,11 +91,7 @@ tempfile.workspace = true criterion = { workspace = true, features = ["async_tokio"] } [target.'cfg(not(target_os = "windows"))'.dev-dependencies] -pprof = { workspace = true, features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] } [features] test-utils = [ diff --git a/crates/storage/codecs/Cargo.toml b/crates/storage/codecs/Cargo.toml index 7a17b16da..9ad7f645f 100644 --- a/crates/storage/codecs/Cargo.toml +++ b/crates/storage/codecs/Cargo.toml @@ -27,20 +27,13 @@ op-alloy-consensus = { workspace = true, optional = true } # misc bytes.workspace = true modular-bitfield.workspace = true -visibility = { version = "0.1.1", optional = true} +visibility = { version = "0.1.1", optional = true } serde.workspace = true arbitrary = { workspace = true, features = ["derive"], optional = true } [dev-dependencies] -alloy-eips = { workspace = true, default-features = false, features = [ - "arbitrary", - "serde", -] } -alloy-primitives = { workspace = true, features = [ - "arbitrary", - "serde", - "rand", -] } +alloy-eips = { workspace = true, default-features = false, features = ["arbitrary", "serde"] } +alloy-primitives = { workspace = true, features = ["arbitrary", "serde", "rand"] } alloy-consensus = { workspace = true, features = ["arbitrary"] } test-fuzz.workspace = true serde_json.workspace = true @@ -53,15 +46,15 @@ rstest.workspace = true [features] default = ["std", "alloy"] std = [ - "alloy-primitives/std", - "bytes/std", - "alloy-consensus?/std", - "alloy-eips?/std", - "alloy-genesis?/std", - "alloy-trie?/std", - "serde/std", - "op-alloy-consensus?/std", - "serde_json/std" + "alloy-primitives/std", + "bytes/std", + "alloy-consensus?/std", + "alloy-eips?/std", + "alloy-genesis?/std", + "alloy-trie?/std", + "serde/std", + "op-alloy-consensus?/std", + "serde_json/std", ] alloy = [ "dep:alloy-consensus", @@ -71,24 +64,24 @@ alloy = [ ] op = ["alloy", "dep:op-alloy-consensus"] test-utils = [ - "std", + "std", "alloy", - "arbitrary", + "arbitrary", "dep:visibility", - "dep:arbitrary" + "dep:arbitrary", ] serde = [ - "alloy-consensus?/serde", - "alloy-eips?/serde", - "alloy-primitives/serde", - "alloy-trie?/serde", - "bytes/serde", - "op-alloy-consensus?/serde", + "alloy-consensus?/serde", + "alloy-eips?/serde", + "alloy-primitives/serde", + "alloy-trie?/serde", + "bytes/serde", + "op-alloy-consensus?/serde", ] arbitrary = [ - "alloy-consensus?/arbitrary", - "alloy-eips?/arbitrary", - "alloy-primitives/arbitrary", - "alloy-trie?/arbitrary", - "op-alloy-consensus?/arbitrary" + "alloy-consensus?/arbitrary", + "alloy-eips?/arbitrary", + "alloy-primitives/arbitrary", + "alloy-trie?/arbitrary", + "op-alloy-consensus?/arbitrary", ] diff --git a/crates/storage/db-api/Cargo.toml b/crates/storage/db-api/Cargo.toml index b15b9473f..4e777d310 100644 --- a/crates/storage/db-api/Cargo.toml +++ b/crates/storage/db-api/Cargo.toml @@ -72,23 +72,23 @@ test-utils = [ "reth-stages-types/test-utils", ] arbitrary = [ - "reth-primitives/arbitrary", - "reth-db-models/arbitrary", - "dep:arbitrary", - "dep:proptest", - "reth-primitives-traits/arbitrary", - "reth-trie-common/arbitrary", - "alloy-primitives/arbitrary", - "parity-scale-codec/arbitrary", - "reth-codecs/arbitrary", - "reth-prune-types/arbitrary", - "reth-stages-types/arbitrary", - "alloy-consensus/arbitrary", - "reth-optimism-primitives?/arbitrary" + "reth-primitives/arbitrary", + "reth-db-models/arbitrary", + "dep:arbitrary", + "dep:proptest", + "reth-primitives-traits/arbitrary", + "reth-trie-common/arbitrary", + "alloy-primitives/arbitrary", + "parity-scale-codec/arbitrary", + "reth-codecs/arbitrary", + "reth-prune-types/arbitrary", + "reth-stages-types/arbitrary", + "alloy-consensus/arbitrary", + "reth-optimism-primitives?/arbitrary", ] optimism = [ - "reth-codecs/op", - "reth-optimism-primitives?/optimism", + "reth-codecs/op", + "reth-optimism-primitives?/optimism", "op", ] op = ["dep:reth-optimism-primitives", "reth-codecs/op"] diff --git a/crates/storage/db/Cargo.toml b/crates/storage/db/Cargo.toml index f09f1cbdd..97c386c31 100644 --- a/crates/storage/db/Cargo.toml +++ b/crates/storage/db/Cargo.toml @@ -29,10 +29,7 @@ alloy-primitives.workspace = true alloy-consensus.workspace = true # mdbx -reth-libmdbx = { workspace = true, optional = true, features = [ - "return-borrowed", - "read-tx-timeouts", -] } +reth-libmdbx = { workspace = true, optional = true, features = ["return-borrowed", "read-tx-timeouts"] } eyre = { workspace = true, optional = true } # codecs @@ -63,11 +60,7 @@ tempfile.workspace = true test-fuzz.workspace = true parking_lot.workspace = true -pprof = { workspace = true, features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] } criterion.workspace = true arbitrary = { workspace = true, features = ["derive"] } diff --git a/crates/storage/errors/Cargo.toml b/crates/storage/errors/Cargo.toml index b37c76ac5..ece3340c6 100644 --- a/crates/storage/errors/Cargo.toml +++ b/crates/storage/errors/Cargo.toml @@ -29,10 +29,10 @@ thiserror.workspace = true [features] default = ["std"] std = [ - "alloy-eips/std", - "alloy-primitives/std", - "alloy-rlp/std", - "derive_more/std", - "reth-primitives-traits/std", - "thiserror/std" + "alloy-eips/std", + "alloy-primitives/std", + "alloy-rlp/std", + "derive_more/std", + "reth-primitives-traits/std", + "thiserror/std", ] diff --git a/crates/storage/libmdbx-rs/Cargo.toml b/crates/storage/libmdbx-rs/Cargo.toml index 4679f4fe9..7e8626348 100644 --- a/crates/storage/libmdbx-rs/Cargo.toml +++ b/crates/storage/libmdbx-rs/Cargo.toml @@ -31,11 +31,7 @@ return-borrowed = [] read-tx-timeouts = ["dep:dashmap"] [dev-dependencies] -pprof = { workspace = true, features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { workspace = true, features = ["flamegraph", "frame-pointer", "criterion"] } criterion.workspace = true rand.workspace = true rand_xorshift = "0.3" diff --git a/crates/storage/provider/Cargo.toml b/crates/storage/provider/Cargo.toml index 9405ffada..42ebb3b4d 100644 --- a/crates/storage/provider/Cargo.toml +++ b/crates/storage/provider/Cargo.toml @@ -57,9 +57,7 @@ metrics.workspace = true # misc auto_impl.workspace = true itertools.workspace = true -notify = { workspace = true, default-features = false, features = [ - "macos_fsevent", -] } +notify = { workspace = true, default-features = false, features = ["macos_fsevent"] } parking_lot.workspace = true dashmap = { workspace = true, features = ["inline"] } strum.workspace = true diff --git a/crates/storage/zstd-compressors/Cargo.toml b/crates/storage/zstd-compressors/Cargo.toml index 357684f32..045dba5b8 100644 --- a/crates/storage/zstd-compressors/Cargo.toml +++ b/crates/storage/zstd-compressors/Cargo.toml @@ -16,4 +16,4 @@ zstd = { workspace = true, features = ["experimental"] } [features] default = ["std"] -std = [] \ No newline at end of file +std = [] diff --git a/crates/tasks/Cargo.toml b/crates/tasks/Cargo.toml index 68d8e9589..78963f675 100644 --- a/crates/tasks/Cargo.toml +++ b/crates/tasks/Cargo.toml @@ -12,7 +12,6 @@ description = "Task management" workspace = true [dependencies] - # async tokio = { workspace = true, features = ["sync", "rt"] } tracing-futures.workspace = true @@ -26,7 +25,7 @@ metrics.workspace = true auto_impl.workspace = true tracing.workspace = true thiserror.workspace = true -dyn-clone.workspace = true +dyn-clone.workspace = true # feature `rayon` rayon = { workspace = true, optional = true } diff --git a/crates/tokio-util/Cargo.toml b/crates/tokio-util/Cargo.toml index 3a8ad768d..8b68969b5 100644 --- a/crates/tokio-util/Cargo.toml +++ b/crates/tokio-util/Cargo.toml @@ -22,4 +22,4 @@ tokio-stream = { workspace = true, features = ["sync"] } tokio = { workspace = true, features = ["full", "macros"] } [features] -time = ["tokio/time"] \ No newline at end of file +time = ["tokio/time"] diff --git a/crates/tracing/Cargo.toml b/crates/tracing/Cargo.toml index d944b5eee..e50de1ebc 100644 --- a/crates/tracing/Cargo.toml +++ b/crates/tracing/Cargo.toml @@ -19,4 +19,4 @@ tracing-journald = "0.3" tracing-logfmt = "0.3.3" rolling-file = "0.2.0" eyre.workspace = true -clap = { workspace = true, features = ["derive"] } \ No newline at end of file +clap = { workspace = true, features = ["derive"] } diff --git a/crates/trie/common/Cargo.toml b/crates/trie/common/Cargo.toml index f05731e87..4e0037325 100644 --- a/crates/trie/common/Cargo.toml +++ b/crates/trie/common/Cargo.toml @@ -25,7 +25,7 @@ alloy-serde = { workspace = true, optional = true } bytes = { workspace = true, optional = true } derive_more.workspace = true -itertools= { workspace = true, features = ["use_alloc"] } +itertools = { workspace = true, features = ["use_alloc"] } nybbles = { workspace = true, features = ["rlp"] } # `serde` feature @@ -60,20 +60,20 @@ serde_with.workspace = true [features] default = ["std"] std = [ - "alloy-consensus/std", - "alloy-genesis/std", - "alloy-primitives/std", - "alloy-rlp/std", - "alloy-rpc-types-eth?/std", - "alloy-serde?/std", - "alloy-trie/std", - "bytes?/std", - "derive_more/std", - "nybbles/std", - "reth-primitives-traits/std", - "serde?/std", - "serde_with?/std", - "serde_json/std" + "alloy-consensus/std", + "alloy-genesis/std", + "alloy-primitives/std", + "alloy-rlp/std", + "alloy-rpc-types-eth?/std", + "alloy-serde?/std", + "alloy-trie/std", + "bytes?/std", + "derive_more/std", + "nybbles/std", + "reth-primitives-traits/std", + "serde?/std", + "serde_with?/std", + "serde_json/std", ] eip1186 = [ "alloy-rpc-types-eth/serde", @@ -88,7 +88,7 @@ serde = [ "alloy-trie/serde", "alloy-rpc-types-eth?/serde", "reth-primitives-traits/serde", - "reth-codecs?/serde" + "reth-codecs?/serde", ] reth-codec = [ "dep:reth-codecs", @@ -96,9 +96,9 @@ reth-codec = [ ] serde-bincode-compat = [ "serde", - "reth-primitives-traits/serde-bincode-compat", - "alloy-consensus/serde-bincode-compat", - "dep:serde_with" + "reth-primitives-traits/serde-bincode-compat", + "alloy-consensus/serde-bincode-compat", + "dep:serde_with", ] test-utils = [ "dep:plain_hasher", @@ -108,17 +108,17 @@ test-utils = [ "reth-codecs/test-utils", ] arbitrary = [ - "std", - "dep:reth-codecs", - "alloy-trie/arbitrary", - "dep:arbitrary", + "std", + "dep:reth-codecs", + "alloy-trie/arbitrary", + "dep:arbitrary", "alloy-serde?/arbitrary", - "reth-primitives-traits/arbitrary", - "alloy-consensus/arbitrary", - "alloy-primitives/arbitrary", - "nybbles/arbitrary", - "reth-codecs/arbitrary", - "alloy-rpc-types-eth?/arbitrary" + "reth-primitives-traits/arbitrary", + "alloy-consensus/arbitrary", + "alloy-primitives/arbitrary", + "nybbles/arbitrary", + "reth-codecs/arbitrary", + "alloy-rpc-types-eth?/arbitrary", ] [[bench]] diff --git a/crates/trie/db/Cargo.toml b/crates/trie/db/Cargo.toml index 2fbdf1d57..bf260934b 100644 --- a/crates/trie/db/Cargo.toml +++ b/crates/trie/db/Cargo.toml @@ -66,23 +66,23 @@ similar-asserts.workspace = true [features] metrics = ["reth-metrics", "reth-trie/metrics", "dep:metrics"] serde = [ - "dep:serde", - "similar-asserts/serde", - "revm/serde", - "alloy-consensus/serde", - "alloy-primitives/serde", - "reth-trie/serde", - "reth-trie-common/serde", - "reth-provider/serde", + "dep:serde", + "similar-asserts/serde", + "revm/serde", + "alloy-consensus/serde", + "alloy-primitives/serde", + "reth-trie/serde", + "reth-trie-common/serde", + "reth-provider/serde", ] test-utils = [ - "triehash", - "revm/test-utils", - "reth-trie-common/test-utils", - "reth-chainspec/test-utils", - "reth-primitives/test-utils", - "reth-db/test-utils", - "reth-db-api/test-utils", - "reth-provider/test-utils", - "reth-trie/test-utils", + "triehash", + "revm/test-utils", + "reth-trie-common/test-utils", + "reth-chainspec/test-utils", + "reth-primitives/test-utils", + "reth-db/test-utils", + "reth-db-api/test-utils", + "reth-provider/test-utils", + "reth-trie/test-utils", ] diff --git a/deny.toml b/deny.toml index 8d0807f9d..cc48b1667 100644 --- a/deny.toml +++ b/deny.toml @@ -9,7 +9,7 @@ ignore = [ # https://rustsec.org/advisories/RUSTSEC-2024-0384 used by sse example "RUSTSEC-2024-0384", # https://rustsec.org/advisories/RUSTSEC-2024-0388 used by ssz, will be removed https://github.com/sigp/ethereum_ssz/pull/34 - "RUSTSEC-2024-0388" + "RUSTSEC-2024-0388", ] # This section is considered when running `cargo deny check bans`. diff --git a/dprint.json b/dprint.json new file mode 100644 index 000000000..dc615dbf4 --- /dev/null +++ b/dprint.json @@ -0,0 +1,13 @@ +{ + "toml": { + "useTabs": false, + "cargo.applyConventions": false, + "indentWidth": 4 + }, + "includes": [ + "**/*.toml" + ], + "plugins": [ + "https://plugins.dprint.dev/toml-0.6.4.wasm" + ] +} diff --git a/examples/bsc-p2p/Cargo.toml b/examples/bsc-p2p/Cargo.toml index fecbab7a8..1a3093394 100644 --- a/examples/bsc-p2p/Cargo.toml +++ b/examples/bsc-p2p/Cargo.toml @@ -16,11 +16,7 @@ reth-network-peers.workspace = true reth-primitives.workspace = true reth-tracing.workspace = true -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } tokio.workspace = true tokio-stream.workspace = true diff --git a/examples/custom-beacon-withdrawals/Cargo.toml b/examples/custom-beacon-withdrawals/Cargo.toml index 9a8152b49..1ec27c671 100644 --- a/examples/custom-beacon-withdrawals/Cargo.toml +++ b/examples/custom-beacon-withdrawals/Cargo.toml @@ -21,4 +21,4 @@ alloy-consensus.workspace = true eyre.workspace = true [features] -optimism = [] \ No newline at end of file +optimism = [] diff --git a/examples/custom-dev-node/Cargo.toml b/examples/custom-dev-node/Cargo.toml index 8ed277686..a001431c5 100644 --- a/examples/custom-dev-node/Cargo.toml +++ b/examples/custom-dev-node/Cargo.toml @@ -5,7 +5,6 @@ publish = false edition.workspace = true license.workspace = true - [dependencies] reth.workspace = true reth-chainspec.workspace = true diff --git a/examples/custom-node-components/Cargo.toml b/examples/custom-node-components/Cargo.toml index 507088970..c257941c1 100644 --- a/examples/custom-node-components/Cargo.toml +++ b/examples/custom-node-components/Cargo.toml @@ -5,7 +5,6 @@ publish = false edition.workspace = true license.workspace = true - [dependencies] reth.workspace = true reth-node-ethereum.workspace = true diff --git a/examples/custom-rlpx-subprotocol/Cargo.toml b/examples/custom-rlpx-subprotocol/Cargo.toml index 18c136671..233e7c372 100644 --- a/examples/custom-rlpx-subprotocol/Cargo.toml +++ b/examples/custom-rlpx-subprotocol/Cargo.toml @@ -5,7 +5,6 @@ publish = false edition.workspace = true license.workspace = true - [dependencies] tokio = { workspace = true, features = ["full"] } futures.workspace = true diff --git a/examples/db-access/Cargo.toml b/examples/db-access/Cargo.toml index ff48c75b3..7035e506e 100644 --- a/examples/db-access/Cargo.toml +++ b/examples/db-access/Cargo.toml @@ -5,7 +5,6 @@ publish = false edition.workspace = true license.workspace = true - [dependencies] reth-chainspec.workspace = true reth-db.workspace = true @@ -19,5 +18,4 @@ alloy-consensus.workspace = true alloy-rpc-types-eth.workspace = true alloy-primitives.workspace = true - eyre.workspace = true diff --git a/examples/polygon-p2p/Cargo.toml b/examples/polygon-p2p/Cargo.toml index 34536ed52..b351da47d 100644 --- a/examples/polygon-p2p/Cargo.toml +++ b/examples/polygon-p2p/Cargo.toml @@ -8,11 +8,7 @@ license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -secp256k1 = { workspace = true, features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] } tokio.workspace = true reth-network.workspace = true reth-chainspec.workspace = true diff --git a/testing/ef-tests/Cargo.toml b/testing/ef-tests/Cargo.toml index 2fc0c7512..2ca705830 100644 --- a/testing/ef-tests/Cargo.toml +++ b/testing/ef-tests/Cargo.toml @@ -22,11 +22,7 @@ asm-keccak = [ [dependencies] reth-chainspec.workspace = true reth-primitives.workspace = true -reth-db = { workspace = true, features = [ - "mdbx", - "test-utils", - "disable-lock", -] } +reth-db = { workspace = true, features = ["mdbx", "test-utils", "disable-lock"] } reth-db-api.workspace = true reth-provider = { workspace = true, features = ["test-utils"] } reth-stages.workspace = true diff --git a/testing/testing-utils/Cargo.toml b/testing/testing-utils/Cargo.toml index 8dc438170..6dfd38e84 100644 --- a/testing/testing-utils/Cargo.toml +++ b/testing/testing-utils/Cargo.toml @@ -25,4 +25,4 @@ secp256k1 = { workspace = true, features = ["rand"] } [dev-dependencies] alloy-eips.workspace = true -reth-primitives-traits .workspace = true +reth-primitives-traits.workspace = true