From d396b1e1faa72ce0eaf8e92029a87467824c9796 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 6 Dec 2024 17:58:31 +0100 Subject: [PATCH] chore: introduce ethereum-primitives crate --- .github/assets/check_rv32imac.sh | 1 + Cargo.lock | 4 ++++ Cargo.toml | 2 ++ crates/ethereum/primitives/Cargo.toml | 14 ++++++++++++++ crates/ethereum/primitives/src/lib.rs | 10 ++++++++++ 5 files changed, 31 insertions(+) create mode 100644 crates/ethereum/primitives/Cargo.toml create mode 100644 crates/ethereum/primitives/src/lib.rs diff --git a/.github/assets/check_rv32imac.sh b/.github/assets/check_rv32imac.sh index 0556fa31deaed..ab1151bfb0ca9 100755 --- a/.github/assets/check_rv32imac.sh +++ b/.github/assets/check_rv32imac.sh @@ -5,6 +5,7 @@ set +e # Disable immediate exit on error crates_to_check=( reth-codecs-derive reth-ethereum-forks + reth-ethereum-primitives reth-primitives-traits reth-optimism-forks # reth-evm diff --git a/Cargo.lock b/Cargo.lock index 37d05d1e0c480..cd893495bc200 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7568,6 +7568,10 @@ dependencies = [ "tracing", ] +[[package]] +name = "reth-ethereum-primitives" +version = "1.1.2" + [[package]] name = "reth-etl" version = "1.1.2" diff --git a/Cargo.toml b/Cargo.toml index 4233750d0762c..08fa42e104629 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,7 @@ members = [ "crates/ethereum/evm", "crates/ethereum/node", "crates/ethereum/payload/", + "crates/ethereum/primitives/", "crates/etl/", "crates/evm/", "crates/evm/execution-errors", @@ -341,6 +342,7 @@ reth-ethereum-consensus = { path = "crates/ethereum/consensus" } reth-ethereum-engine-primitives = { path = "crates/ethereum/engine-primitives" } reth-ethereum-forks = { path = "crates/ethereum-forks", default-features = false } reth-ethereum-payload-builder = { path = "crates/ethereum/payload" } +reth-ethereum-primitives = { path = "crates/ethereum/primitives", default-features = false } reth-etl = { path = "crates/etl" } reth-evm = { path = "crates/evm" } reth-evm-ethereum = { path = "crates/ethereum/evm" } diff --git a/crates/ethereum/primitives/Cargo.toml b/crates/ethereum/primitives/Cargo.toml new file mode 100644 index 0000000000000..15d98ec44b045 --- /dev/null +++ b/crates/ethereum/primitives/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "reth-ethereum-primitives" +version.workspace = true +edition.workspace = true +rust-version.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true +description = "Ethereum primitive types" + +[lints] +workspace = true + +[dependencies] diff --git a/crates/ethereum/primitives/src/lib.rs b/crates/ethereum/primitives/src/lib.rs new file mode 100644 index 0000000000000..78bb5d75f194d --- /dev/null +++ b/crates/ethereum/primitives/src/lib.rs @@ -0,0 +1,10 @@ +//! Standalone crate for ethereum-specific Reth primitive types. + +#![doc( + html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", + html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", + issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" +)] +#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] +#![cfg_attr(not(test), warn(unused_crate_dependencies))] +#![cfg_attr(not(feature = "std"), no_std)]