diff --git a/Cargo.lock b/Cargo.lock index d3b18093e7e78f..6c4f7b64528de5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7369,6 +7369,7 @@ dependencies = [ "solana-frozen-abi-macro", "solana-logger", "solana-metrics", + "solana-perf", "solana-rayon-threadlimit", "solana-sdk", "solana-short-vec", diff --git a/core/Cargo.toml b/core/Cargo.toml index 310147fc001fe8..3b8f37a0db3298 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -125,6 +125,7 @@ sysctl = { workspace = true } [features] dev-context-only-utils = [ + "solana-perf/dev-context-only-utils", "solana-runtime/dev-context-only-utils", "solana-streamer/dev-context-only-utils", ] diff --git a/entry/Cargo.toml b/entry/Cargo.toml index a9bde85d833e7c..d8b45e01160c79 100644 --- a/entry/Cargo.toml +++ b/entry/Cargo.toml @@ -28,6 +28,7 @@ solana-sdk = { workspace = true } [dev-dependencies] assert_matches = { workspace = true } solana-logger = { workspace = true } +solana-perf = { workspace = true, features = ["dev-context-only-utils"] } [lib] crate-type = ["lib"] diff --git a/gossip/Cargo.toml b/gossip/Cargo.toml index 48449a5d078809..3d533db3016429 100644 --- a/gossip/Cargo.toml +++ b/gossip/Cargo.toml @@ -63,6 +63,7 @@ thiserror = { workspace = true } [dev-dependencies] num_cpus = { workspace = true } serial_test = { workspace = true } +solana-perf = { workspace = true, features = ["dev-context-only-utils"] } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } test-case = { workspace = true } diff --git a/perf/Cargo.toml b/perf/Cargo.toml index cc0354a2677e9e..91941c9b666c08 100644 --- a/perf/Cargo.toml +++ b/perf/Cargo.toml @@ -31,7 +31,7 @@ solana-metrics = { workspace = true } solana-rayon-threadlimit = { workspace = true } solana-sdk = { workspace = true } solana-short-vec = { workspace = true } -solana-vote-program = { workspace = true } +solana-vote-program = { workspace = true, optional = true } [target."cfg(target_os = \"linux\")".dependencies] caps = { workspace = true } @@ -45,9 +45,11 @@ name = "solana_perf" assert_matches = { workspace = true } rand_chacha = { workspace = true } solana-logger = { workspace = true } +solana-perf = { path = ".", features = ["dev-context-only-utils"] } test-case = { workspace = true } [features] +dev-context-only-utils = ["dep:solana-vote-program"] frozen-abi = [ "dep:solana-frozen-abi", "dep:solana-frozen-abi-macro", diff --git a/perf/src/lib.rs b/perf/src/lib.rs index c70b3afbb0d49a..95137b89d7f2a7 100644 --- a/perf/src/lib.rs +++ b/perf/src/lib.rs @@ -8,6 +8,7 @@ pub mod perf_libs; pub mod recycler; pub mod recycler_cache; pub mod sigverify; +#[cfg(feature = "dev-context-only-utils")] pub mod test_tx; pub mod thread; diff --git a/poh/Cargo.toml b/poh/Cargo.toml index 0b93acffe5a2c4..60c2379e3e94ed 100644 --- a/poh/Cargo.toml +++ b/poh/Cargo.toml @@ -26,7 +26,7 @@ assert_matches = { workspace = true } bincode = { workspace = true } rand = { workspace = true } solana-logger = { workspace = true } -solana-perf = { workspace = true } +solana-perf = { workspace = true, features = ["dev-context-only-utils"] } solana-poh = { path = ".", features = ["dev-context-only-utils"] } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } diff --git a/programs/sbf/Cargo.lock b/programs/sbf/Cargo.lock index ee1c9b2fc8ae09..78716922b7c152 100644 --- a/programs/sbf/Cargo.lock +++ b/programs/sbf/Cargo.lock @@ -5766,7 +5766,6 @@ dependencies = [ "solana-rayon-threadlimit", "solana-sdk", "solana-short-vec", - "solana-vote-program", ] [[package]]