Skip to content

Commit

Permalink
Activate telos feature on revm when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirpashaa committed Apr 28, 2024
1 parent 7bb43e7 commit 7edd2fc
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ reth-transaction-pool = { path = "crates/transaction-pool" }
reth-trie = { path = "crates/trie" }

# revm
revm = { git = "https://github.com/telosnetwork/telos-revm", branch = "telos-main", features = ["std", "secp256k1", "telos"], default-features = false }
revm-primitives = { git = "https://github.com/telosnetwork/telos-revm", branch = "telos-main", features = ["std", "telos"], default-features = false }
revm = { git = "https://github.com/telosnetwork/telos-revm", branch = "telos-main", features = ["std", "secp256k1"], default-features = false }
revm-primitives = { git = "https://github.com/telosnetwork/telos-revm", branch = "telos-main", features = ["std"], default-features = false }
revm-inspectors = { git = "https://github.com/telosnetwork/telos-evm-inspectors", branch = "telos-main" }

# eth
Expand Down
10 changes: 10 additions & 0 deletions bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ telos = [
"reth-provider/telos",
"reth-consensus-common/telos",
"reth-stages/telos",
"reth-node-api/telos",
"reth-payload-builder/telos",
"reth-node-ethereum/telos",
"reth-basic-payload-builder/telos",
"reth-ethereum-payload-builder/telos",
"reth-optimism-payload-builder/telos",
"reth-revm/telos",
"reth-transaction-pool/telos",
"reth-trie/telos",
"reth-rpc-types-compat/telos"
]

[[bin]]
Expand Down
6 changes: 6 additions & 0 deletions crates/node-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ revm.workspace = true

# io
serde.workspace = true

[features]
telos = [
"revm/telos",
"revm-primitives/telos",
]
5 changes: 4 additions & 1 deletion crates/node-ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ reth-db.workspace = true
[features]
# This is a workaround for reth-cli crate to allow this as mandatory dependency without breaking the build even if unused.
# This makes managing features and testing workspace easier because clippy always builds all members if --workspace is provided
optimism = []
optimism = []
telos = [
"revm/telos",
]
7 changes: 6 additions & 1 deletion crates/payload/basic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ reth-metrics.workspace = true
metrics.workspace = true

# misc
tracing.workspace = true
tracing.workspace = true

[features]
telos = [
"revm/telos",
]
4 changes: 4 additions & 0 deletions crates/payload/builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ optimism = [
"reth-interfaces/optimism",
"reth-transaction-pool/optimism",
]
telos = [
"revm/telos",
"revm-primitives/telos",
]
3 changes: 3 additions & 0 deletions crates/payload/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ tracing.workspace = true
# This is a workaround for reth-cli crate to allow this as mandatory dependency without breaking the build even if unused.
# This makes managing features and testing workspace easier because clippy always builds all members if --workspace is provided
optimism = []
telos = [
"revm/telos",
]
3 changes: 3 additions & 0 deletions crates/payload/optimism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ optimism = [
"reth-provider/optimism",
"reth-payload-builder/optimism",
]
telos = [
"revm/telos",
]
5 changes: 4 additions & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ optimism = [
"reth-ethereum-forks/optimism",
"revm/optimism",
]
telos = []
telos = [
"revm/telos",
"revm-primitives/telos",
]
test-utils = ["dep:plain_hasher", "dep:hash-db", "dep:ethers-core"]

[[bench]]
Expand Down
3 changes: 3 additions & 0 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ optimism = [
"reth-interfaces/optimism",
]
js-tracer = ["revm-inspectors/js-tracer"]
telos = [
"revm/telos",
]
2 changes: 2 additions & 0 deletions crates/rpc/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ optimism = [
telos = [
"dep:reth-telos",
"reth-rpc-types-compat/telos",
"revm/telos",
"revm-primitives/telos",
]
4 changes: 3 additions & 1 deletion crates/stages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ serde_json.workspace = true

[features]
test-utils = ["reth-interfaces/test-utils", "reth-db/test-utils"]
telos = []
telos = [
"revm/telos",
]

[[bench]]
name = "criterion"
Expand Down
4 changes: 3 additions & 1 deletion crates/storage/provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ rand.workspace = true
[features]
test-utils = ["alloy-rlp", "reth-db/test-utils"]
optimism = ["reth-primitives/optimism", "reth-interfaces/optimism"]
telos = []
telos = [
"revm/telos",
]
3 changes: 3 additions & 0 deletions crates/transaction-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ optimism = [
"reth-provider/optimism",
"revm/optimism",
]
telos = [
"revm/telos",
]

[[bench]]
name = "truncate"
Expand Down
3 changes: 3 additions & 0 deletions crates/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ criterion.workspace = true

[features]
test-utils = ["triehash"]
telos = [
"revm/telos",
]

[[bench]]
name = "prefix_set"
Expand Down

0 comments on commit 7edd2fc

Please sign in to comment.