You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cargo.toml
[dev-dependencies]
divan = "0.1.11"
[[bench]]
name = "various"harness = false
[[bench]]
name = "file"harness = false
[[bench]]
name = "names"harness = false
[[bench]]
name = "here"harness = false# However, here it feels like a chore
This gets repetitive very quickly, and doesn't feel like the ideal developer experience.
Would it be possible to consider:
automatically detecting the files under benches/ so that the [[bench]] sections aren't required
setting harness = false by default and letting people override it to harness = true when needed
in order to simplify the process of adding new benchmarks into just adding a new file to the benches/ directory?
Perhaps if a main entrypoint is detected, then harness = false becomes set? Detecting main could also remove the need to list every benchmark in Cargo.toml.
Currently, creating benchmarks for a crate looks something like this:
This gets repetitive very quickly, and doesn't feel like the ideal developer experience.
Would it be possible to consider:
benches/
so that the[[bench]]
sections aren't requiredharness = false
by default and letting people override it toharness = true
when neededin order to simplify the process of adding new benchmarks into just adding a new file to the
benches/
directory?A related issue and comment for historical context: rust-lang/rust#29553 (comment)
The text was updated successfully, but these errors were encountered: