From bf756f5d5deb1c1946d23b2cd28ac3dd66420b94 Mon Sep 17 00:00:00 2001 From: anonymousGiga Date: Thu, 28 Mar 2024 17:56:11 +0800 Subject: [PATCH] fix: Modifying feature dependencies --- Cargo.lock | 1 + bin/reth/Cargo.toml | 1 + crates/node-builder/Cargo.toml | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 9cd57821cecd..dced49d8a2c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6131,6 +6131,7 @@ dependencies = [ "eyre", "fdlimit", "futures", + "perf-metrics", "rayon", "reth-auto-seal-consensus", "reth-beacon-consensus", diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index e96b4b1eacaa..9ef0a4987a39 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -144,6 +144,7 @@ ethereum = [] open_performance_dashboard = [ "reth-stages/open_performance_dashboard", "perf-metrics", + "reth-node-builder/open_performance_dashboard" ] enable_opcode_metrics = [ "perf-metrics/enable_opcode_metrics", diff --git a/crates/node-builder/Cargo.toml b/crates/node-builder/Cargo.toml index 8e389cc6ed23..9731e954b372 100644 --- a/crates/node-builder/Cargo.toml +++ b/crates/node-builder/Cargo.toml @@ -35,6 +35,7 @@ reth-prune.workspace = true reth-stages.workspace = true reth-config.workspace = true +perf-metrics = { workspace = true, optional = true } ## async futures.workspace = true @@ -50,3 +51,9 @@ eyre.workspace = true fdlimit = "0.3.0" confy.workspace = true rayon.workspace = true + + +[features] +open_performance_dashboard = [ + "perf-metrics", +]