feat: make js-tracer feature optional for node builder crate (#12178)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
tedison
2024-11-29 09:15:21 -05:00
committed by GitHub
parent 95b52b3be0
commit db6e5b5cd4
8 changed files with 19 additions and 3 deletions

View File

@ -59,7 +59,7 @@ reth-trie-db = { workspace = true, features = ["metrics"] }
reth-node-api.workspace = true
reth-node-core.workspace = true
reth-ethereum-payload-builder.workspace = true
reth-node-ethereum.workspace = true
reth-node-ethereum = { workspace = true, features = ["js-tracer"] }
reth-node-builder.workspace = true
reth-node-events.workspace = true
reth-node-metrics.workspace = true

View File

@ -70,6 +70,9 @@ rand.workspace = true
[features]
default = []
js-tracer = [
"reth-node-builder/js-tracer"
]
test-utils = [
"reth-node-builder/test-utils",
"reth-chainspec/test-utils",

View File

@ -1,4 +1,7 @@
//! Standalone crate for ethereum-specific Reth configuration and builder types.
//!
//! # features
//! - `js-tracer`: Enable the `JavaScript` tracer for the `debug_trace` endpoints
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",

View File

@ -45,7 +45,7 @@ reth-payload-validator.workspace = true
reth-primitives.workspace = true
reth-provider.workspace = true
reth-prune.workspace = true
reth-rpc = { workspace = true, features = ["js-tracer"] }
reth-rpc.workspace = true
reth-rpc-api.workspace = true
reth-rpc-builder.workspace = true
reth-rpc-engine-api.workspace = true
@ -96,6 +96,7 @@ tempfile.workspace = true
[features]
default = []
js-tracer = ["reth-rpc/js-tracer"]
test-utils = [
"reth-db/test-utils",
"reth-blockchain-tree/test-utils",

View File

@ -1,4 +1,7 @@
//! Standalone crate for Reth configuration and builder types.
//!
//! # features
//! - `js-tracer`: Enable the `JavaScript` tracer for the `debug_trace` endpoints
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",

View File

@ -9,7 +9,7 @@ repository.workspace = true
exclude.workspace = true
[dependencies]
reth-node-builder.workspace = true
reth-node-builder = { workspace = true, features = ["js-tracer"] }
reth-cli-util.workspace = true
reth-optimism-cli.workspace = true
reth-provider.workspace = true

View File

@ -105,6 +105,9 @@ asm-keccak = [
"reth-optimism-node/asm-keccak",
"reth-node-core/asm-keccak"
]
js-tracer = [
"reth-node-builder/js-tracer"
]
test-utils = [
"reth-tasks",
"reth-e2e-test-utils",

View File

@ -1,4 +1,7 @@
//! Standalone crate for Optimism-specific Reth configuration and builder types.
//!
//! # features
//! - `js-tracer`: Enable the `JavaScript` tracer for the `debug_trace` endpoints
#![doc(
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png",