Disable auto-benchmark harness for crates (#8057)

# Description

This disables automatic detection of `#[bench]` and other benchmarks
within the crates. Our benchmarks should all live in `benches`

This fixes a problem with criterion flags and should also reduce the
build requirements for `cargo bench` a bit

Taken from https://github.com/nushell/nushell/pull/7952

See:
https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options


# User-Facing Changes

None
This commit is contained in:
Stefan Holderbach
2023-02-12 23:22:00 +01:00
committed by GitHub
parent b0775b3f1e
commit 1cd70d7505
23 changed files with 75 additions and 0 deletions

View File

@ -10,6 +10,9 @@ version = "0.75.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
bench = false
[dependencies]
nu-ansi-term = "0.46.0"
nu-color-config = { path = "../nu-color-config", version = "0.75.1" }