Skip to content

Commit

Permalink
chore: introduce ethereum-primitives crate
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Dec 6, 2024
1 parent 627ceae commit d396b1e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/assets/check_rv32imac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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" }
Expand Down
14 changes: 14 additions & 0 deletions crates/ethereum/primitives/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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]
10 changes: 10 additions & 0 deletions crates/ethereum/primitives/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]

0 comments on commit d396b1e

Please sign in to comment.