diff --git a/crates/rpc/rpc-eth-api/Cargo.toml b/crates/rpc/rpc-eth-api/Cargo.toml index 5cd79c27c6fc..af747fb322ef 100644 --- a/crates/rpc/rpc-eth-api/Cargo.toml +++ b/crates/rpc/rpc-eth-api/Cargo.toml @@ -14,7 +14,7 @@ workspace = true [dependencies] # reth revm.workspace = true -revm-inspectors = { workspace = true, features = ["js-tracer"] } +revm-inspectors.workspace = true revm-primitives = { workspace = true, features = ["dev"] } reth-errors.workspace = true reth-evm.workspace = true @@ -27,7 +27,7 @@ reth-tasks = { workspace = true, features = ["rayon"] } reth-transaction-pool.workspace = true reth-chainspec.workspace = true reth-execution-types.workspace = true -reth-rpc-eth-types = { workspace = true, features = ["js-tracer"] } +reth-rpc-eth-types.workspace = true reth-rpc-server-types.workspace = true reth-network-api.workspace = true @@ -50,6 +50,8 @@ dyn-clone.workspace = true tracing.workspace = true [features] +default = ["js-tracer"] +js-tracer = ["revm-inspectors/js-tracer", "reth-rpc-eth-types/js-tracer"] client = ["jsonrpsee/client", "jsonrpsee/async-client"] optimism = [ "reth-primitives/optimism", diff --git a/crates/rpc/rpc/Cargo.toml b/crates/rpc/rpc/Cargo.toml index 5661c1f724f2..572f59b81867 100644 --- a/crates/rpc/rpc/Cargo.toml +++ b/crates/rpc/rpc/Cargo.toml @@ -27,10 +27,10 @@ reth-revm.workspace = true reth-tasks = { workspace = true, features = ["rayon"] } reth-consensus-common.workspace = true reth-rpc-types-compat.workspace = true -revm-inspectors = { workspace = true, features = ["js-tracer"] } +revm-inspectors.workspace = true reth-network-peers = { workspace = true, features = ["secp256k1"] } reth-evm.workspace = true -reth-rpc-eth-types = { workspace = true, features = ["js-tracer"] } +reth-rpc-eth-types.workspace = true reth-rpc-server-types.workspace = true reth-node-api.workspace = true reth-network-types.workspace = true @@ -84,6 +84,8 @@ jsonrpsee-types.workspace = true jsonrpsee = { workspace = true, features = ["client"] } [features] +default = ["js-tracer"] +js-tracer = ["revm-inspectors/js-tracer", "reth-rpc-eth-types/js-tracer"] optimism = [ "reth-primitives/optimism", "reth-rpc-types-compat/optimism",