Skip to content

Commit

Permalink
perf: put test_tx.rs behind dev-context-only-utils (#3438)
Browse files Browse the repository at this point in the history
* put test_tx,rs behind dev-context-only-utils

* only require solana-vote-program under dcou
  • Loading branch information
kevinheavey authored Nov 4, 2024
1 parent 2aa93e9 commit 09374b7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
1 change: 1 addition & 0 deletions entry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions gossip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
4 changes: 3 additions & 1 deletion perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions perf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion poh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

Expand Down
1 change: 0 additions & 1 deletion programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09374b7

Please sign in to comment.