Skip to content

Commit f4043ac

Browse files
committed
refactor: gate bench_support behind feature flag
1 parent fb1bf3c commit f4043ac

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ members = ["crates/hyperrat", "crates/ratatui-toaster"]
1818
[features]
1919
default = ["keyring/linux-native"]
2020
persist-token = ["keyring/sync-secret-service"]
21+
benches = []
2122

2223
[dependencies]
2324
anyhow = "1.0"
@@ -77,3 +78,4 @@ criterion = { version = "0.5.1", features = ["html_reports"] }
7778
[[bench]]
7879
name = "ui_hotspots"
7980
harness = false
81+
required-features = ["benches"]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pub mod app;
22
pub mod auth;
3+
#[cfg(feature = "benches")]
34
pub mod bench_support;
45
pub mod bookmarks;
56
pub mod errors;

0 commit comments

Comments
 (0)