Skip to content

Commit 72a97fe

Browse files
Brooooooklynclaude
andcommitted
fix: disable bench auto-discovery to exclude fixtures from CodSpeed
Since edition 2018+, Cargo auto-discovers all `benches/*.rs` files as benchmark targets regardless of explicit `[[bench]]` entries. `benches/fixtures.rs` is a shared data module (not a runnable benchmark), so it gets picked up without `harness = false`, causing CodSpeed to reject it. Setting `autobenches = false` in `[package]` disables auto-discovery so only the explicitly declared `[[bench]]` targets are used. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 699b9c7 commit 72a97fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repository = "https://github.com/hyf0/sugar_path"
66
version = "1.2.1"
77
edition = "2024"
88
license = "MIT"
9+
autobenches = false
910

1011
[features]
1112
# Enable `cached_current_dir` will make `SugarPath` to only call `std::env::current_dir` once for all path operations.

0 commit comments

Comments
 (0)