diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index a152bea26..cf9c53261 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -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 diff --git a/crates/ethereum/node/Cargo.toml b/crates/ethereum/node/Cargo.toml index e6f47483b..55421cf84 100644 --- a/crates/ethereum/node/Cargo.toml +++ b/crates/ethereum/node/Cargo.toml @@ -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", diff --git a/crates/ethereum/node/src/lib.rs b/crates/ethereum/node/src/lib.rs index 421cee37f..8dae60315 100644 --- a/crates/ethereum/node/src/lib.rs +++ b/crates/ethereum/node/src/lib.rs @@ -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", diff --git a/crates/node/builder/Cargo.toml b/crates/node/builder/Cargo.toml index 781112d93..26d157e1e 100644 --- a/crates/node/builder/Cargo.toml +++ b/crates/node/builder/Cargo.toml @@ -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", diff --git a/crates/node/builder/src/lib.rs b/crates/node/builder/src/lib.rs index 899317f15..a4f87c479 100644 --- a/crates/node/builder/src/lib.rs +++ b/crates/node/builder/src/lib.rs @@ -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", diff --git a/crates/optimism/bin/Cargo.toml b/crates/optimism/bin/Cargo.toml index 45f4492e8..9007d0848 100644 --- a/crates/optimism/bin/Cargo.toml +++ b/crates/optimism/bin/Cargo.toml @@ -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 diff --git a/crates/optimism/node/Cargo.toml b/crates/optimism/node/Cargo.toml index 5f100f0a2..79e0c451b 100644 --- a/crates/optimism/node/Cargo.toml +++ b/crates/optimism/node/Cargo.toml @@ -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", diff --git a/crates/optimism/node/src/lib.rs b/crates/optimism/node/src/lib.rs index 7af0f3b8a..81db8b2b7 100644 --- a/crates/optimism/node/src/lib.rs +++ b/crates/optimism/node/src/lib.rs @@ -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",