fix: accurate build features reporting in reth --version (#19124)

This commit is contained in:
leniram159
2025-10-30 15:48:30 +01:00
committed by GitHub
parent d87d0d1a1f
commit 5f5dbb0121
5 changed files with 10 additions and 6 deletions

View File

@@ -372,7 +372,7 @@ reth-era-utils = { path = "crates/era-utils" }
reth-errors = { path = "crates/errors" }
reth-eth-wire = { path = "crates/net/eth-wire" }
reth-eth-wire-types = { path = "crates/net/eth-wire-types" }
reth-ethereum-cli = { path = "crates/ethereum/cli" }
reth-ethereum-cli = { path = "crates/ethereum/cli", default-features = false }
reth-ethereum-consensus = { path = "crates/ethereum/consensus", default-features = false }
reth-ethereum-engine-primitives = { path = "crates/ethereum/engine-primitives", default-features = false }
reth-ethereum-forks = { path = "crates/ethereum/hardforks", default-features = false }
@@ -413,7 +413,7 @@ reth-optimism-node = { path = "crates/optimism/node" }
reth-node-types = { path = "crates/node/types" }
reth-op = { path = "crates/optimism/reth", default-features = false }
reth-optimism-chainspec = { path = "crates/optimism/chainspec", default-features = false }
reth-optimism-cli = { path = "crates/optimism/cli" }
reth-optimism-cli = { path = "crates/optimism/cli", default-features = false }
reth-optimism-consensus = { path = "crates/optimism/consensus", default-features = false }
reth-optimism-forks = { path = "crates/optimism/hardforks", default-features = false }
reth-optimism-payload-builder = { path = "crates/optimism/payload" }

View File

@@ -81,7 +81,9 @@ backon.workspace = true
tempfile.workspace = true
[features]
default = ["jemalloc", "reth-revm/portable"]
default = ["jemalloc", "otlp", "reth-revm/portable"]
otlp = ["reth-ethereum-cli/otlp"]
dev = ["reth-ethereum-cli/dev"]

View File

@@ -37,7 +37,7 @@ tracing.workspace = true
tempfile.workspace = true
[features]
default = ["jemalloc", "otlp"]
default = []
otlp = ["reth-tracing/otlp", "reth-node-core/otlp"]

View File

@@ -27,7 +27,9 @@ tracing.workspace = true
workspace = true
[features]
default = ["jemalloc", "reth-optimism-evm/portable"]
default = ["jemalloc", "otlp", "reth-optimism-evm/portable"]
otlp = ["reth-optimism-cli/otlp"]
jemalloc = ["reth-cli-util/jemalloc", "reth-optimism-cli/jemalloc"]
jemalloc-prof = ["reth-cli-util/jemalloc-prof"]

View File

@@ -76,7 +76,7 @@ reth-stages = { workspace = true, features = ["test-utils"] }
reth-optimism-chainspec = { workspace = true, features = ["std", "superchain-configs"] }
[features]
default = ["otlp"]
default = []
# Opentelemtry feature to activate metrics export
otlp = ["reth-tracing/otlp", "reth-node-core/otlp"]