diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 000000000000..5d37e5d80089 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +msrv = "1.70" diff --git a/Cargo.toml b/Cargo.toml index cc1dd0d97d55..bacd6527e1f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ members = [ "crates/tasks", "crates/transaction-pool", "crates/trie", - "testing/ef-tests" + "testing/ef-tests", ] default-members = ["bin/reth"] @@ -51,6 +51,13 @@ default-members = ["bin/reth"] # https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html resolver = "2" +[workspace.package] +edition = "2021" +rust-version = "1.70" # Remember to update .clippy.toml and README.md +license = "MIT OR Apache-2.0" +homepage = "https://paradigmxyz.github.io/reth" +repository = "https://github.com/paradigmxyz/reth" + # Like release, but with full debug symbols. Useful for e.g. `perf`. [profile.debug-fast] inherits = "release" @@ -66,6 +73,5 @@ incremental = false # patched for quantity U256 responses ruint = { git = "https://github.com/paradigmxyz/uint" } - [workspace.dependencies] tracing = "^0.1.0" diff --git a/README.md b/README.md index 7a31def5e99a..8471788541d0 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Reth (short for Rust Ethereum, [pronunciation](https://twitter.com/kelvinfichter As a full Ethereum node, Reth allows users to connect to the Ethereum network and interact with the Ethereum blockchain. This includes sending and receiving transactions/logs/traces, as well as accessing and interacting with smart contracts. Building a successful Ethereum node requires creating a high-quality implementation that is both secure and efficient, as well as being easy to use on consumer hardware. It also requires building a strong community of contributors who can help support and improve the software. More concretely, our goals are: + 1. **Modularity**: Every component of Reth is built to be used as a library: well-tested, heavily documented and benchmarked. We envision that developers will import the node's crates, mix and match, and innovate on top of them. Examples of such usage include but are not limited to spinning up standalone P2P networks, talking directly to a node's database, or "unbundling" the node into the components you need. To achieve that, we are licensing Reth under the Apache/MIT permissive license. You can learn more about the project's components [here](./docs/repo/layout.md). 2. **Performance**: Reth aims to be fast, so we used Rust and the [Erigon staged-sync](https://erigon.substack.com/p/erigon-stage-sync-and-control-flows) node architecture. We also use our Ethereum libraries (including [ethers-rs](https://github.com/gakonst/ethers-rs/) and [revm](https://github.com/bluealloy/revm/)) which we’ve battle-tested and optimized via [Foundry](https://github.com/foundry-rs/foundry/). 3. **Free for anyone to use any way they want**: Reth is free open source software, built for the community, by the community. By licensing the software under the Apache/MIT license, we want developers to use it without being bound by business licenses, or having to think about the implications of GPL-like licenses. @@ -30,7 +31,6 @@ More concretely, our goals are: 5. **Support as many EVM chains as possible**: We aspire that Reth can full-sync not only Ethereum, but also other chains like Optimism, Polygon, BNB Smart Chain, and more. If you're working on any of these projects, please reach out. 6. **Configurability**: We want to solve for node operators that care about fast historical queries, but also for hobbyists who cannot operate on large hardware. We also want to support teams and individuals who want both sync from genesis and via "fast sync". We envision that Reth will be configurable enough and provide configurable "profiles" for the tradeoffs that each team faces. - ## Status The project is not ready for use. We hope to have full sync implemented sometime in Q1 2023, followed by optimizations. In the meantime, we're working on making sure every crate of the repository is well documented, abstracted and tested. @@ -43,9 +43,9 @@ See the [Reth Book](https://paradigmxyz.github.io/reth) for instructions on how ### Build & Test -Rust minimum required version to build this project is 1.70.0 published 01.06.2023. +The Minimum Supported Rust Version (MSRV) of this project is [1.70.0](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html). -See the book for detailed instructions on how to build from [source](https://paradigmxyz.github.io/reth/installation/source.html). +See the book for detailed instructions on how to [build from source](https://paradigmxyz.github.io/reth/installation/source.html). To fully test Reth, you will need to have [Geth installed](https://geth.ethereum.org/docs/getting-started/installing-geth), but it is possible to run a subset of tests without Geth. @@ -60,10 +60,10 @@ Next, run the tests: ```sh # Without Geth -cargo test --all +cargo test --workspace # With Geth -cargo test --all --features geth-tests +cargo test --workspace --features geth-tests ``` We recommend using [`cargo nextest`](https://nexte.st/) to speed up testing. With nextest installed, simply substitute `cargo test` with `cargo nextest run`. diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 315df9d16fa6..bed0b3d4d650 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "reth" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" -build = "build.rs" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] # reth @@ -17,7 +17,7 @@ reth-provider = { path = "../../crates/storage/provider", features = ["test-util reth-revm = { path = "../../crates/revm" } reth-revm-inspectors = { path = "../../crates/revm/revm-inspectors" } reth-staged-sync = { path = "../../crates/staged-sync" } -reth-stages = { path = "../../crates/stages"} +reth-stages = { path = "../../crates/stages" } reth-interfaces = { path = "../../crates/interfaces", features = ["test-utils"] } reth-transaction-pool = { path = "../../crates/transaction-pool" } reth-beacon-consensus = { path = "../../crates/consensus/beacon" } @@ -40,11 +40,7 @@ reth-metrics = { path = "../../crates/metrics" } jemallocator = { version = "0.5.0", optional = true } # crypto -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } # tracing tracing = { workspace = true } @@ -56,7 +52,7 @@ serde_json = "1.0" shellexpand = "3.0.0" dirs-next = "2.0.0" confy = "0.5" -toml = {version = "0.7", features = ["display"]} +toml = { version = "0.7", features = ["display"] } # metrics metrics-exporter-prometheus = "0.11.0" diff --git a/crates/blockchain-tree/Cargo.toml b/crates/blockchain-tree/Cargo.toml index c5ef7761f2b0..477abfec31fe 100644 --- a/crates/blockchain-tree/Cargo.toml +++ b/crates/blockchain-tree/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-blockchain-tree" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [package.metadata.cargo-udeps.ignore] normal = [ @@ -19,9 +20,8 @@ reth-interfaces = { path = "../interfaces" } reth-db = { path = "../storage/db" } reth-provider = { path = "../storage/provider" } - # common -parking_lot = { version = "0.12"} +parking_lot = { version = "0.12" } lru = "0.10" tracing = { workspace = true } @@ -29,12 +29,11 @@ tracing = { workspace = true } aquamarine = "0.3.0" linked_hash_set = "0.1.4" - [dev-dependencies] reth-db = { path = "../storage/db", features = ["test-utils"] } reth-interfaces = { path = "../interfaces", features = ["test-utils"] } reth-primitives = { path = "../primitives", features = ["test-utils"] } -reth-provider = { path = "../storage/provider", features = ["test-utils"] } +reth-provider = { path = "../storage/provider", features = ["test-utils"] } parking_lot = "0.12" assert_matches = "1.5" tokio = { version = "1", features = ["macros", "sync"] } diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index 91fd7164f38b..36fd50fc04d3 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-config" version = "0.1.0" -edition = "2021" -license = "Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] # reth @@ -18,13 +19,8 @@ serde = "1.0" serde_json = "1.0.91" #crypto -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } confy = "0.5" tempfile = "3.4" - diff --git a/crates/consensus/auto-seal/Cargo.toml b/crates/consensus/auto-seal/Cargo.toml index be5b9f4939f1..381cdacdfd88 100644 --- a/crates/consensus/auto-seal/Cargo.toml +++ b/crates/consensus/auto-seal/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-auto-seal-consensus" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "A consensus impl for local testing purposes" [dependencies] diff --git a/crates/consensus/beacon/Cargo.toml b/crates/consensus/beacon/Cargo.toml index b4ff65601ffc..178d5da5e264 100644 --- a/crates/consensus/beacon/Cargo.toml +++ b/crates/consensus/beacon/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-beacon-consensus" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] # reth diff --git a/crates/consensus/common/Cargo.toml b/crates/consensus/common/Cargo.toml index 627f896657d8..d74d1bf31b78 100644 --- a/crates/consensus/common/Cargo.toml +++ b/crates/consensus/common/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-consensus-common" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] # reth @@ -12,7 +13,6 @@ reth-primitives = { path = "../../primitives" } reth-interfaces = { path = "../../interfaces" } reth-provider = { path = "../../storage/provider" } - [dev-dependencies] reth-interfaces = { path = "../../interfaces", features = ["test-utils"] } reth-provider = { path = "../../storage/provider", features = ["test-utils"] } diff --git a/crates/interfaces/Cargo.toml b/crates/interfaces/Cargo.toml index 240bf257fcb5..8bec5a37259b 100644 --- a/crates/interfaces/Cargo.toml +++ b/crates/interfaces/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-interfaces" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] reth-codecs = { path = "../storage/codecs" } diff --git a/crates/metrics/Cargo.toml b/crates/metrics/Cargo.toml index 064e9e560452..e556062db0cb 100644 --- a/crates/metrics/Cargo.toml +++ b/crates/metrics/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-metrics" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "reth metrics utilities" [dependencies] diff --git a/crates/metrics/metrics-derive/Cargo.toml b/crates/metrics/metrics-derive/Cargo.toml index 2682ccbd3045..ce992b589e74 100644 --- a/crates/metrics/metrics-derive/Cargo.toml +++ b/crates/metrics/metrics-derive/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-metrics-derive" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [lib] proc-macro = true diff --git a/crates/net/common/Cargo.toml b/crates/net/common/Cargo.toml index 7994f6503929..28cfc002ac48 100644 --- a/crates/net/common/Cargo.toml +++ b/crates/net/common/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-net-common" version = "0.1.0" -edition = "2021" -license = "Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Types shared across network code """ diff --git a/crates/net/discv4/Cargo.toml b/crates/net/discv4/Cargo.toml index e55a4cd1c7d3..48f7f50fdff9 100644 --- a/crates/net/discv4/Cargo.toml +++ b/crates/net/discv4/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-discv4" version = "0.1.0" -edition = "2021" -license = "Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Ethereum network discovery """ @@ -19,15 +20,8 @@ reth-net-nat = { path = "../nat" } # ethereum discv5 = { git = "https://github.com/sigp/discv5" } -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", - "serde" -] } -enr = { version = "0.8.1", default-features = false, features = [ - "rust-secp256k1", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery", "serde"] } +enr = { version = "0.8.1", default-features = false, features = ["rust-secp256k1"] } # async/futures tokio = { version = "1", features = ["io-util", "net", "time"] } diff --git a/crates/net/dns/Cargo.toml b/crates/net/dns/Cargo.toml index c5884d010c6a..5f29e5ae1983 100644 --- a/crates/net/dns/Cargo.toml +++ b/crates/net/dns/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-dns-discovery" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Support for EIP-1459 Node Discovery via DNS" [dependencies] @@ -14,12 +15,7 @@ reth-net-common = { path = "../common" } reth-rlp = { path = "../../rlp" } # ethereum -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", - "serde" -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery", "serde"] } enr = { version = "0.8.1", default-features = false, features = ["rust-secp256k1"] } # async/futures diff --git a/crates/net/downloaders/Cargo.toml b/crates/net/downloaders/Cargo.toml index 9d408df3c7c3..8f6e5e785ece 100644 --- a/crates/net/downloaders/Cargo.toml +++ b/crates/net/downloaders/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-downloaders" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Implementations of various block downloaders" [dependencies] diff --git a/crates/net/ecies/Cargo.toml b/crates/net/ecies/Cargo.toml index b23dc6e79b00..1cedb1ea3a74 100644 --- a/crates/net/ecies/Cargo.toml +++ b/crates/net/ecies/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-ecies" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] reth-rlp = { path = "../../rlp", features = ["derive", "ethereum-types", "std"] } diff --git a/crates/net/eth-wire/Cargo.toml b/crates/net/eth-wire/Cargo.toml index edd842a2636e..cd63e424291c 100644 --- a/crates/net/eth-wire/Cargo.toml +++ b/crates/net/eth-wire/Cargo.toml @@ -2,10 +2,11 @@ name = "reth-eth-wire" description = "Implements the eth/64 and eth/65 P2P protocols" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [dependencies] bytes = "1.4" @@ -16,11 +17,17 @@ serde = { version = "1", optional = true } reth-codecs = { path = "../../storage/codecs" } reth-primitives = { path = "../../primitives" } reth-ecies = { path = "../ecies" } -reth-rlp = { path = "../../rlp", features = ["alloc", "derive", "std", "ethereum-types", "smol_str"] } +reth-rlp = { path = "../../rlp", features = [ + "alloc", + "derive", + "std", + "ethereum-types", + "smol_str", +] } reth-metrics = { path = "../../metrics" } # used for Chain and builders -ethers-core = { version = "2.0.7", default-features = false} +ethers-core = { version = "2.0.7", default-features = false } tokio = { version = "1.21.2", features = ["full"] } tokio-util = { version = "0.7.4", features = ["io", "codec"] } @@ -40,7 +47,7 @@ proptest-derive = { version = "0.3", optional = true } [dev-dependencies] reth-primitives = { path = "../../primitives", features = ["arbitrary"] } reth-tracing = { path = "../../tracing" } -ethers-core = { version = "2.0.7", default-features = false} +ethers-core = { version = "2.0.7", default-features = false } test-fuzz = "3.0.4" tokio-util = { version = "0.7.4", features = ["io", "codec"] } diff --git a/crates/net/nat/Cargo.toml b/crates/net/nat/Cargo.toml index 871ee205e004..0b146f836c06 100644 --- a/crates/net/nat/Cargo.toml +++ b/crates/net/nat/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-net-nat" version = "0.1.0" -edition = "2021" -license = "Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Helpers for working around NAT """ @@ -13,10 +15,7 @@ Helpers for working around NAT # nat public-ip = "0.2" ## fork of rust-igd with ipv6 support: https://github.com/sbstp/rust-igd/issues/47 -igd = { git = "https://github.com/stevefan1999-personal/rust-igd", features = [ - "aio", - "tokio1", -] } +igd = { git = "https://github.com/stevefan1999-personal/rust-igd", features = ["aio", "tokio1"] } # misc tracing = { workspace = true } diff --git a/crates/net/network-api/Cargo.toml b/crates/net/network-api/Cargo.toml index cac269149eb3..44cd4b1b3600 100644 --- a/crates/net/network-api/Cargo.toml +++ b/crates/net/network-api/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-network-api" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Network interfaces" [dependencies] diff --git a/crates/net/network/Cargo.toml b/crates/net/network/Cargo.toml index ce5a00ee86e2..740941e69c42 100644 --- a/crates/net/network/Cargo.toml +++ b/crates/net/network/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-network" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Ethereum network support """ @@ -12,7 +13,7 @@ Ethereum network support [package.metadata.cargo-udeps.ignore] normal = [ # Used for diagrams in docs - "aquamarine" + "aquamarine", ] [dependencies] @@ -29,7 +30,7 @@ reth-rlp = { path = "../../rlp" } reth-rlp-derive = { path = "../../rlp/rlp-derive" } reth-tasks = { path = "../../tasks" } reth-transaction-pool = { path = "../../transaction-pool" } -reth-provider = { path = "../../storage/provider"} +reth-provider = { path = "../../storage/provider" } reth-metrics = { path = "../../metrics", features = ["common"] } reth-rpc-types = { path = "../../rpc/rpc-types" } @@ -56,11 +57,7 @@ async-trait = "0.1" linked_hash_set = "0.1" linked-hash-map = "0.5.6" rand = "0.8" -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } enr = { version = "0.8.1", features = ["rust-secp256k1"], optional = true } ethers-core = { version = "2.0.7", default-features = false, optional = true } @@ -79,10 +76,10 @@ reth-provider = { path = "../../storage/provider", features = ["test-utils"] } reth-tracing = { path = "../../tracing" } reth-transaction-pool = { path = "../../transaction-pool", features = ["test-utils"] } -ethers-core = { version = "2.0.7", default-features = false} -ethers-providers = {version = "2.0.7", default-features = false } -ethers-signers = {version = "2.0.7", default-features = false } -ethers-middleware = {version = "2.0.7", default-features = false } +ethers-core = { version = "2.0.7", default-features = false } +ethers-providers = { version = "2.0.7", default-features = false } +ethers-signers = { version = "2.0.7", default-features = false } +ethers-middleware = { version = "2.0.7", default-features = false } enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"] } @@ -95,4 +92,4 @@ serial_test = "0.10" default = ["serde"] serde = ["dep:serde", "dep:humantime-serde", "secp256k1/serde", "enr?/serde", "dep:serde_json"] test-utils = ["reth-provider/test-utils", "dep:enr", "dep:ethers-core", "dep:tempfile"] -geth-tests = [] \ No newline at end of file +geth-tests = [] diff --git a/crates/payload/basic/Cargo.toml b/crates/payload/basic/Cargo.toml index 0f0bedef43b6..f2d62ab02021 100644 --- a/crates/payload/basic/Cargo.toml +++ b/crates/payload/basic/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-basic-payload-builder" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "A basic payload builder for reth that uses the txpool API to build payloads." [dependencies] @@ -27,4 +28,4 @@ futures-core = "0.3" futures-util = "0.3" ## misc -tracing = { workspace = true } \ No newline at end of file +tracing = { workspace = true } diff --git a/crates/payload/builder/Cargo.toml b/crates/payload/builder/Cargo.toml index eab97b89a234..6af8d6ef5940 100644 --- a/crates/payload/builder/Cargo.toml +++ b/crates/payload/builder/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-payload-builder" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "reth payload builder" [dependencies] @@ -30,6 +31,5 @@ sha2 = { version = "0.10", default-features = false } tracing = { workspace = true } hashbrown = "0.13" - [features] -test-utils = [] \ No newline at end of file +test-utils = [] diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 863de457c4f6..15a5f3bfa432 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-primitives" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Commonly used types in reth." [dependencies] @@ -22,9 +23,7 @@ crunchy = { version = "0.2.2", default-features = false, features = ["limit_256" ruint = { version = "1.7.0", features = ["primitive-types", "rlp"] } # Bloom -fixed-hash = { version = "0.8", default-features = false, features = [ - "rustc-hex", -] } +fixed-hash = { version = "0.8", default-features = false, features = ["rustc-hex"] } # crypto secp256k1 = { version = "0.27.0", default-features = false, features = [ @@ -85,20 +84,11 @@ proptest-derive = "0.3" # https://github.com/paradigmxyz/reth/pull/177#discussion_r1021172198 secp256k1 = "0.27.0" criterion = "0.4.0" -pprof = { version = "0.11", features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { version = "0.11", features = ["flamegraph", "frame-pointer", "criterion"] } [features] default = [] -arbitrary = [ - "revm-primitives/arbitrary", - "dep:arbitrary", - "dep:proptest", - "dep:proptest-derive", -] +arbitrary = ["revm-primitives/arbitrary", "dep:arbitrary", "dep:proptest", "dep:proptest-derive"] test-utils = [] [[bench]] diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index 87a8c977d16d..867c774c7e77 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-revm" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "reth specific revm utilities" [dependencies] diff --git a/crates/revm/revm-inspectors/Cargo.toml b/crates/revm/revm-inspectors/Cargo.toml index 0a4d851337c5..68bd2cb85cb8 100644 --- a/crates/revm/revm-inspectors/Cargo.toml +++ b/crates/revm/revm-inspectors/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-revm-inspectors" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "revm inspector implementations used by reth" [dependencies] @@ -15,4 +17,4 @@ revm = { version = "3" } # remove from reth and reexport from revm hashbrown = "0.13" -serde = { version = "1.0", features = ["derive"] } \ No newline at end of file +serde = { version = "1.0", features = ["derive"] } diff --git a/crates/revm/revm-primitives/Cargo.toml b/crates/revm/revm-primitives/Cargo.toml index 8dc2d0bd0811..7652c920af10 100644 --- a/crates/revm/revm-primitives/Cargo.toml +++ b/crates/revm/revm-primitives/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-revm-primitives" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "core reth specific revm utilities" [dependencies] diff --git a/crates/rlp/Cargo.toml b/crates/rlp/Cargo.toml index df5751e995ce..703a6acab94a 100644 --- a/crates/rlp/Cargo.toml +++ b/crates/rlp/Cargo.toml @@ -1,10 +1,12 @@ [package] name = "reth-rlp" version = "0.1.2" -edition = "2021" +edition.workspace = true +rust-version.workspace = true license = "Apache-2.0" description = "Fast RLP serialization library" -repository = "https://github.com/paradigmxyz/reth" +homepage.workspace = true +repository.workspace = true [dependencies] arrayvec = { version = "0.7", default-features = false } @@ -22,7 +24,7 @@ reth-rlp = { path = ".", package = "reth-rlp", features = [ "std", "ethnum", "ethereum-types", - "smol_str" + "smol_str", ] } criterion = "0.4.0" hex-literal = "0.3" diff --git a/crates/rlp/rlp-derive/Cargo.toml b/crates/rlp/rlp-derive/Cargo.toml index cb41704d92b5..1ae76e95a6ad 100644 --- a/crates/rlp/rlp-derive/Cargo.toml +++ b/crates/rlp/rlp-derive/Cargo.toml @@ -2,9 +2,11 @@ name = "reth-rlp-derive" version = "0.1.1" license = "Apache-2.0" -edition = "2021" +edition.workspace = true +rust-version.workspace = true description = "Procedural macros for reth-rlp" -repository = "https://github.com/paradigmxyz/reth" +homepage.workspace = true +repository.workspace = true [lib] proc-macro = true diff --git a/crates/rpc/ipc/Cargo.toml b/crates/rpc/ipc/Cargo.toml index 72ef062c5cb1..28124197b039 100644 --- a/crates/rpc/ipc/Cargo.toml +++ b/crates/rpc/ipc/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-ipc" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ IPC support for reth """ diff --git a/crates/rpc/rpc-api/Cargo.toml b/crates/rpc/rpc-api/Cargo.toml index fb7c0f984618..1162c334618f 100644 --- a/crates/rpc/rpc-api/Cargo.toml +++ b/crates/rpc/rpc-api/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-rpc-api" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Reth RPC interfaces """ diff --git a/crates/rpc/rpc-builder/Cargo.toml b/crates/rpc/rpc-builder/Cargo.toml index 86dc98ac2965..951eb3cdecde 100644 --- a/crates/rpc/rpc-builder/Cargo.toml +++ b/crates/rpc/rpc-builder/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-rpc-builder" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Helpers for configuring RPC" [dependencies] diff --git a/crates/rpc/rpc-engine-api/Cargo.toml b/crates/rpc/rpc-engine-api/Cargo.toml index 16a8934f1c53..a66a752210b4 100644 --- a/crates/rpc/rpc-engine-api/Cargo.toml +++ b/crates/rpc/rpc-engine-api/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "reth-rpc-engine-api" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Implementation of Engine API" [dependencies] diff --git a/crates/rpc/rpc-types/Cargo.toml b/crates/rpc/rpc-types/Cargo.toml index 66dcb70a0e58..5bb82d2e845d 100644 --- a/crates/rpc/rpc-types/Cargo.toml +++ b/crates/rpc/rpc-types/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-rpc-types" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Reth RPC types """ @@ -32,4 +33,4 @@ reth-interfaces = { path = "../../interfaces", features = ["test-utils"] } # misc rand = "0.8" -assert_matches = "1.5" \ No newline at end of file +assert_matches = "1.5" diff --git a/crates/rpc/rpc/Cargo.toml b/crates/rpc/rpc/Cargo.toml index 3f57f30acede..f985a4da7065 100644 --- a/crates/rpc/rpc/Cargo.toml +++ b/crates/rpc/rpc/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-rpc" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Reth RPC implementation """ @@ -16,20 +17,21 @@ reth-rpc-api = { path = "../rpc-api" } reth-rlp = { path = "../../rlp" } reth-rpc-types = { path = "../rpc-types" } reth-provider = { path = "../../storage/provider", features = ["test-utils"] } -reth-transaction-pool = { path = "../../transaction-pool", features = [ - "test-utils", -] } +reth-transaction-pool = { path = "../../transaction-pool", features = ["test-utils"] } reth-network-api = { path = "../../net/network-api", features = ["test-utils"] } reth-rpc-engine-api = { path = "../rpc-engine-api" } reth-revm = { path = "../../revm" } reth-tasks = { path = "../../tasks" } # eth -revm = { version = "3", features = ["optional_block_gas_limit", "optional_eip3607", "optional_no_base_fee"] } -ethers-core = { version = "2.0.7", features = ["eip712"]} +revm = { version = "3", features = [ + "optional_block_gas_limit", + "optional_eip3607", + "optional_no_base_fee", +] } +ethers-core = { version = "2.0.7", features = ["eip712"] } revm-primitives = { version = "1.1", features = ["serde"] } - # rpc jsonrpsee = { version = "0.18" } http = "0.2.8" @@ -46,11 +48,7 @@ tokio-util = "0.7" pin-project = "1.0" bytes = "1.4" -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery" -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "1.0" diff --git a/crates/staged-sync/Cargo.toml b/crates/staged-sync/Cargo.toml index 6e65f4b2c3a8..70d5e2ed5741 100644 --- a/crates/staged-sync/Cargo.toml +++ b/crates/staged-sync/Cargo.toml @@ -1,15 +1,16 @@ [package] name = "reth-staged-sync" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Puts together all the Reth stages in a unified abstraction" [dependencies] # reth -reth-db = {path = "../../crates/storage/db", features = ["mdbx", "test-utils"] } +reth-db = { path = "../../crates/storage/db", features = ["mdbx", "test-utils"] } reth-discv4 = { path = "../../crates/net/discv4" } reth-network-api = { path = "../../crates/net/network-api" } reth-network = { path = "../../crates/net/network", features = ["serde"] } @@ -31,11 +32,7 @@ tracing = { workspace = true } # crypto rand = { version = "0.8", optional = true } -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } # errors thiserror = "1" @@ -44,14 +41,22 @@ thiserror = "1" enr = { version = "0.8.1", features = ["serde", "rust-secp256k1"], optional = true } # ethers -ethers-core = { version = "2.0.7", default-features = false, optional = true} -ethers-providers = { version = "2.0.7", features = ["ws"], default-features = false, optional = true } +ethers-core = { version = "2.0.7", default-features = false, optional = true } +ethers-providers = { version = "2.0.7", features = [ + "ws", +], default-features = false, optional = true } ethers-middleware = { version = "2.0.7", default-features = false, optional = true } ethers-signers = { version = "2.0.7", default-features = false, optional = true } # async / futures async-trait = { version = "0.1", optional = true } -tokio = { version = "1", features = ["io-util", "net", "macros", "rt-multi-thread", "time"], optional = true } +tokio = { version = "1", features = [ + "io-util", + "net", + "macros", + "rt-multi-thread", + "time", +], optional = true } # misc hex = { version = "0.4", optional = true } @@ -70,11 +75,7 @@ futures = "0.3" tokio = { version = "1", features = ["io-util", "net", "macros", "rt-multi-thread", "time"] } # crypto -secp256k1 = { version = "0.27.0", features = [ - "global-context", - "rand-std", - "recovery", -] } +secp256k1 = { version = "0.27.0", features = ["global-context", "rand-std", "recovery"] } confy = "0.5" @@ -93,6 +94,6 @@ test-utils = [ "dep:ethers-signers", "dep:ethers-providers", "dep:ethers-middleware", - "dep:async-trait" + "dep:async-trait", ] geth-tests = [] diff --git a/crates/stages/Cargo.toml b/crates/stages/Cargo.toml index 3ccdc78a0425..af129c86e24a 100644 --- a/crates/stages/Cargo.toml +++ b/crates/stages/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-stages" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Staged syncing primitives used in reth." [package.metadata.cargo-udeps.ignore] @@ -46,7 +47,7 @@ reth-primitives = { path = "../primitives", features = ["arbitrary"] } reth-db = { path = "../storage/db", features = ["test-utils", "mdbx"] } reth-interfaces = { path = "../interfaces", features = ["test-utils"] } reth-downloaders = { path = "../net/downloaders" } -reth-eth-wire = { path = "../net/eth-wire" } # TODO(onbjerg): We only need this for [BlockBody] +reth-eth-wire = { path = "../net/eth-wire" } # TODO(onbjerg): We only need this for [BlockBody] reth-blockchain-tree = { path = "../blockchain-tree" } reth-rlp = { path = "../rlp" } reth-revm = { path = "../revm" } @@ -59,17 +60,12 @@ rand = "0.8.5" paste = "1.0" # Stage benchmarks -pprof = { version = "0.11", features = [ - "flamegraph", - "frame-pointer", - "criterion", -] } +pprof = { version = "0.11", features = ["flamegraph", "frame-pointer", "criterion"] } criterion = { version = "0.4.0", features = ["async_futures"] } [features] test-utils = [] - [[bench]] name = "criterion" harness = false diff --git a/crates/storage/codecs/Cargo.toml b/crates/storage/codecs/Cargo.toml index a01874de0d14..14c86b90080f 100644 --- a/crates/storage/codecs/Cargo.toml +++ b/crates/storage/codecs/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-codecs" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [features] default = ["compact"] @@ -12,13 +13,7 @@ compact = ["codecs-derive/compact"] scale = ["codecs-derive/scale"] postcard = ["codecs-derive/postcard"] no_codec = ["codecs-derive/no_codec"] -arbitrary = [ - "revm-primitives/arbitrary", - "dep:arbitrary", - "dep:proptest", - "dep:proptest-derive", -] - +arbitrary = ["revm-primitives/arbitrary", "dep:arbitrary", "dep:proptest", "dep:proptest-derive"] [dependencies] bytes = "1.4" @@ -31,10 +26,7 @@ proptest = { version = "1.0", optional = true } proptest-derive = { version = "0.3", optional = true } [dev-dependencies] -revm-primitives = { version = "1.1", features = [ - "serde", - "arbitrary" -] } +revm-primitives = { version = "1.1", features = ["serde", "arbitrary"] } serde = "1.0" modular-bitfield = "0.11.2" diff --git a/crates/storage/codecs/derive/Cargo.toml b/crates/storage/codecs/derive/Cargo.toml index 68081dd61f29..7cf9700ee57f 100644 --- a/crates/storage/codecs/derive/Cargo.toml +++ b/crates/storage/codecs/derive/Cargo.toml @@ -1,9 +1,11 @@ [package] name = "codecs-derive" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true readme = "../README.md" [package.metadata.cargo-udeps.ignore] @@ -11,7 +13,7 @@ normal = [ # Used in proc macros "serde", # Used in proc macros - "parity-scale-codec" + "parity-scale-codec", ] [lib] diff --git a/crates/storage/db/Cargo.toml b/crates/storage/db/Cargo.toml index b7ea3c2c8e6d..8d91fe853e9c 100644 --- a/crates/storage/db/Cargo.toml +++ b/crates/storage/db/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-db" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Staged syncing primitives used in reth." [dependencies] @@ -12,7 +13,7 @@ description = "Staged syncing primitives used in reth." reth-primitives = { path = "../../primitives" } reth-interfaces = { path = "../../interfaces" } reth-codecs = { path = "../codecs" } -reth-libmdbx = { path = "../libmdbx-rs", optional = true , features = ["return-borrowed"] } +reth-libmdbx = { path = "../libmdbx-rs", optional = true, features = ["return-borrowed"] } reth-metrics = { path = "../../metrics" } # codecs @@ -44,7 +45,7 @@ proptest-derive = { version = "0.3", optional = true } [dev-dependencies] # reth libs with arbitrary -reth-primitives = { path = "../../primitives", features = ["arbitrary"]} +reth-primitives = { path = "../../primitives", features = ["arbitrary"] } reth-codecs = { path = "../codecs", features = ["arbitrary"] } reth-interfaces = { path = "../../interfaces", features = ["bench"] } @@ -70,7 +71,6 @@ serde_json = "1.0" paste = "1.0" - [features] default = ["mdbx"] test-utils = ["tempfile", "arbitrary"] diff --git a/crates/storage/libmdbx-rs/Cargo.toml b/crates/storage/libmdbx-rs/Cargo.toml index 6c16fd85adfa..85ca8b962e74 100644 --- a/crates/storage/libmdbx-rs/Cargo.toml +++ b/crates/storage/libmdbx-rs/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "reth-libmdbx" version = "0.1.6" -edition = "2021" +edition.workspace = true +rust-version.workspace = true license = "Apache-2.0" description = "Idiomatic and safe MDBX wrapper with good licence" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +homepage.workspace = true +repository.workspace = true [lib] name = "reth_libmdbx" diff --git a/crates/storage/libmdbx-rs/mdbx-sys/Cargo.toml b/crates/storage/libmdbx-rs/mdbx-sys/Cargo.toml index d84552fa6657..00420504c558 100644 --- a/crates/storage/libmdbx-rs/mdbx-sys/Cargo.toml +++ b/crates/storage/libmdbx-rs/mdbx-sys/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "reth-mdbx-sys" version = "0.12.6-0" -edition = "2021" +edition.workspace = true +rust-version.workspace = true license = "Apache-2.0" description = "Rust bindings for libmdbx with good licence." -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +homepage.workspace = true +repository.workspace = true [lib] name = "reth_mdbx_sys" diff --git a/crates/storage/provider/Cargo.toml b/crates/storage/provider/Cargo.toml index 6ccaffb5485a..b2c88deed7d5 100644 --- a/crates/storage/provider/Cargo.toml +++ b/crates/storage/provider/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-provider" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Reth storage provider." [dependencies] diff --git a/crates/tasks/Cargo.toml b/crates/tasks/Cargo.toml index 715e4e81da99..f1c2ecc24e01 100644 --- a/crates/tasks/Cargo.toml +++ b/crates/tasks/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-tasks" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "Task management" [dependencies] diff --git a/crates/tracing/Cargo.toml b/crates/tracing/Cargo.toml index b9e5f7d6bd51..9e6569ac61f3 100644 --- a/crates/tracing/Cargo.toml +++ b/crates/tracing/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-tracing" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = "tracing helpers" [dependencies] diff --git a/crates/transaction-pool/Cargo.toml b/crates/transaction-pool/Cargo.toml index 95a8dcda1846..4f5f03790a57 100644 --- a/crates/transaction-pool/Cargo.toml +++ b/crates/transaction-pool/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "reth-transaction-pool" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Transaction pool implementation """ @@ -12,12 +13,12 @@ Transaction pool implementation [package.metadata.cargo-udeps.ignore] normal = [ # Used for diagrams in docs - "aquamarine" + "aquamarine", ] [dependencies] # reth -reth-primitives = { path = "../primitives" } +reth-primitives = { path = "../primitives" } reth-provider = { path = "../storage/provider" } reth-interfaces = { path = "../interfaces" } reth-rlp = { path = "../rlp" } @@ -46,7 +47,6 @@ paste = { version = "1.0", optional = true } paste = "1.0" rand = "0.8" - [features] default = ["serde"] serde = ["dep:serde"] diff --git a/crates/trie/Cargo.toml b/crates/trie/Cargo.toml index 07a8f01f36a1..994a1ae7bc54 100644 --- a/crates/trie/Cargo.toml +++ b/crates/trie/Cargo.toml @@ -1,18 +1,19 @@ [package] name = "reth-trie" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true description = """ Merkle trie implementation """ [dependencies] # reth -reth-primitives = { path = "../primitives" } -reth-interfaces = { path = "../interfaces" } +reth-primitives = { path = "../primitives" } +reth-interfaces = { path = "../interfaces" } reth-rlp = { path = "../rlp" } reth-db = { path = "../storage/db" } @@ -32,7 +33,7 @@ triehash = { version = "0.8", optional = true } [dev-dependencies] # reth -reth-primitives = { path = "../primitives", features = ["test-utils", "arbitrary"] } +reth-primitives = { path = "../primitives", features = ["test-utils", "arbitrary"] } reth-db = { path = "../storage/db", features = ["test-utils"] } reth-provider = { path = "../storage/provider" } diff --git a/testing/ef-tests/Cargo.toml b/testing/ef-tests/Cargo.toml index 7bccc92b0628..9071b5202dba 100644 --- a/testing/ef-tests/Cargo.toml +++ b/testing/ef-tests/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "ef-tests" version = "0.1.0" -edition = "2021" -license = "MIT OR Apache-2.0" -repository = "https://github.com/paradigmxyz/reth" -readme = "README.md" description = "Staged syncing primitives used in reth." +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true [features] ef-tests = [] @@ -22,4 +23,4 @@ tokio = "1.28.1" walkdir = "2.3.3" serde = "1.0.163" serde_json = "1.0.96" -thiserror = "1.0.40" \ No newline at end of file +thiserror = "1.0.40"