Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
wip: splitting bins
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Nov 4, 2023
1 parent 8cab07b commit 9423c95
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 90 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[workspace]
members = [
"bin/reth",
"bin/ethereum",
"bin/optimism",
"crates/config",
"crates/consensus/auto-seal",
"crates/consensus/beacon",
Expand Down
34 changes: 0 additions & 34 deletions bin/ethereum/Cargo.toml

This file was deleted.

34 changes: 0 additions & 34 deletions bin/optimism/Cargo.toml

This file was deleted.

9 changes: 9 additions & 0 deletions bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,12 @@ optimism = [

[build-dependencies]
vergen = { version = "8.0.0", features = ["build", "cargo", "git", "gitcl"] }

[[bin]]
name = "reth"
path = "src/ethereum.rs"

[[bin]]
name = "op-reth"
path = "src/optimism.rs"
required-features = ["optimism"]
4 changes: 4 additions & 0 deletions bin/optimism/src/main.rs → bin/reth/src/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(feature = "optimism")]
compile_error!("run --bin op-reth for Optimism");

#[cfg(not(feature = "optimism"))]
fn main() {
if let Err(err) = reth::cli::run() {
eprintln!("Error: {err:?}");
Expand Down
File renamed without changes.

0 comments on commit 9423c95

Please sign in to comment.