From 2caccede3a54b1e7f3c75d02783c5e7438d9590c Mon Sep 17 00:00:00 2001 From: Kevin Heavey Date: Thu, 9 Jan 2025 23:31:02 +0100 Subject: [PATCH] make solana-metrics optional in solana-bpf-loader-program (#4360) --- programs/bpf_loader/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/bpf_loader/Cargo.toml b/programs/bpf_loader/Cargo.toml index ac1d2d22eaaa60..f6875d75735c12 100644 --- a/programs/bpf_loader/Cargo.toml +++ b/programs/bpf_loader/Cargo.toml @@ -35,7 +35,7 @@ solana-precompiles = { workspace = true } solana-program = { workspace = true } solana-program-entrypoint = { workspace = true } solana-program-memory = { workspace = true } -solana-program-runtime = { workspace = true, features = ["metrics"] } +solana-program-runtime = { workspace = true } solana-pubkey = { workspace = true } solana-sbpf = { workspace = true } solana-sdk-ids = { workspace = true } @@ -80,6 +80,8 @@ harness = false targets = ["x86_64-unknown-linux-gnu"] [features] +default = ["metrics"] +metrics = ["solana-program-runtime/metrics"] shuttle-test = [ "solana-type-overrides/shuttle-test", "solana-program-runtime/shuttle-test",