fix(node-core): build time cargo features (#9866)

This commit is contained in:
Alexey Shekhirin
2024-07-29 14:27:00 +01:00
committed by GitHub
parent 067dad79d2
commit d6f633b695
2 changed files with 10 additions and 10 deletions

View File

@ -117,15 +117,14 @@ libc = "0.2"
[dev-dependencies]
reth-discv4.workspace = true
[features]
default = ["jemalloc"]
dev = ["reth-cli-commands/dev"]
asm-keccak = ["reth-primitives/asm-keccak"]
asm-keccak = ["reth-node-core/asm-keccak", "reth-primitives/asm-keccak"]
jemalloc = ["dep:tikv-jemallocator", "reth-node-metrics/jemalloc"]
jemalloc = ["dep:tikv-jemallocator", "reth-node-core/jemalloc", "reth-node-metrics/jemalloc"]
jemalloc-prof = ["jemalloc", "tikv-jemallocator?/profiling"]
min-error-logs = ["tracing/release_max_level_error"]
@ -135,15 +134,15 @@ min-debug-logs = ["tracing/release_max_level_debug"]
min-trace-logs = ["tracing/release_max_level_trace"]
optimism = [
"dep:reth-node-optimism",
"dep:reth-optimism-cli",
"reth-optimism-cli?/optimism",
"reth-primitives/optimism",
"reth-rpc/optimism",
"reth-provider/optimism",
"reth-beacon-consensus/optimism",
"reth-blockchain-tree/optimism",
"dep:reth-node-optimism",
"reth-node-core/optimism",
"reth-optimism-cli?/optimism",
"reth-primitives/optimism",
"reth-provider/optimism",
"reth-rpc/optimism",
]
# no-op feature flag for switching between the `optimism` and default functionality in CI matrices

View File

@ -85,8 +85,9 @@ optimism = [
"reth-rpc-types-compat/optimism",
"reth-rpc-eth-api/optimism",
]
# Features for vergen to generate correct env vars
jemalloc = []
asm-keccak = []
[build-dependencies]
vergen = { version = "8.0.0", features = ["build", "cargo", "git", "gitcl"] }