forked from extern/nushell
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:
parent
b0775b3f1e
commit
1cd70d7505
@ -143,6 +143,7 @@ debug = false
|
|||||||
[[bin]]
|
[[bin]]
|
||||||
name = "nu"
|
name = "nu"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
bench = false
|
||||||
|
|
||||||
# To use a development version of a dependency please use a global override here
|
# To use a development version of a dependency please use a global override here
|
||||||
# changing versions in each sub-crate of the workspace is tedious
|
# changing versions in each sub-crate of the workspace is tedious
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-cli"
|
name = "nu-cli"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
nu-test-support = { path = "../nu-test-support", version = "0.75.1" }
|
nu-test-support = { path = "../nu-test-support", version = "0.75.1" }
|
||||||
nu-command = { path = "../nu-command", version = "0.75.1" }
|
nu-command = { path = "../nu-command", version = "0.75.1" }
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-color-config"
|
name = "nu-color-config"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version="1.0.123", features=["derive"] }
|
serde = { version="1.0.123", features=["derive"] }
|
||||||
# used only for text_style Alignments
|
# used only for text_style Alignments
|
||||||
|
@ -10,6 +10,9 @@ version = "0.75.1"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
nu-color-config = { path = "../nu-color-config", version = "0.75.1" }
|
nu-color-config = { path = "../nu-color-config", version = "0.75.1" }
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-engine"
|
name = "nu-engine"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-protocol = { path = "../nu-protocol", features = ["plugin"], version = "0.75.1" }
|
nu-protocol = { path = "../nu-protocol", features = ["plugin"], version = "0.75.1" }
|
||||||
nu-path = { path = "../nu-path", version = "0.75.1" }
|
nu-path = { path = "../nu-path", version = "0.75.1" }
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-explore"
|
name = "nu-explore"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
||||||
|
@ -10,5 +10,8 @@ repository = "https://github.com/nushell/nushell/tree/main/crates/nu-glob"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
categories = ["filesystem"]
|
categories = ["filesystem"]
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
doc-comment = "0.3"
|
doc-comment = "0.3"
|
@ -9,6 +9,9 @@ version = "0.75.1"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
preserve_order = ["linked-hash-map", "linked-hash-map/serde_impl"]
|
preserve_order = ["linked-hash-map", "linked-hash-map/serde_impl"]
|
||||||
default = ["preserve_order"]
|
default = ["preserve_order"]
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-parser"
|
name = "nu-parser"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytesize = "1.1.0"
|
bytesize = "1.1.0"
|
||||||
chrono = { default-features = false, features = ['std'], version = "0.4.23" }
|
chrono = { default-features = false, features = ['std'], version = "0.4.23" }
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-path"
|
name = "nu-path"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dirs-next = "2.0.0"
|
dirs-next = "2.0.0"
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-plugin"
|
name = "nu-plugin"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bincode = "1.3.3"
|
bincode = "1.3.3"
|
||||||
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
||||||
|
@ -11,6 +11,7 @@ version = "0.75.1"
|
|||||||
doctest = false
|
doctest = false
|
||||||
name = "nu_pretty_hex"
|
name = "nu_pretty_hex"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
|
@ -9,6 +9,9 @@ version = "0.75.1"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-utils = { path = "../nu-utils", version = "0.75.1" }
|
nu-utils = { path = "../nu-utils", version = "0.75.1" }
|
||||||
nu-json = { path = "../nu-json", version = "0.75.1" }
|
nu-json = { path = "../nu-json", version = "0.75.1" }
|
||||||
|
@ -9,6 +9,9 @@ license = "MIT"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-table"
|
name = "nu-table"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
nu-protocol = { path = "../nu-protocol", version = "0.75.1" }
|
||||||
|
@ -7,6 +7,9 @@ license = "MIT"
|
|||||||
name = "nu-term-grid"
|
name = "nu-term-grid"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
unicode-width = "0.1.9"
|
unicode-width = "0.1.9"
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ version = "0.75.1"
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-path = { path="../nu-path", version = "0.75.1" }
|
nu-path = { path="../nu-path", version = "0.75.1" }
|
||||||
|
@ -11,6 +11,10 @@ version = "0.75.1"
|
|||||||
[[bin]]
|
[[bin]]
|
||||||
name = "utils"
|
name = "utils"
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@ -5,6 +5,9 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
[[bin]]
|
||||||
|
name = "nu_plugin_custom_values"
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-plugin = { path = "../nu-plugin", version = "0.75.1" }
|
nu-plugin = { path = "../nu-plugin", version = "0.75.1" }
|
||||||
|
@ -7,6 +7,13 @@ license = "MIT"
|
|||||||
name = "nu_plugin_example"
|
name = "nu_plugin_example"
|
||||||
version = "0.75.1"
|
version = "0.75.1"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "nu_plugin_example"
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
||||||
nu-protocol = { path="../nu-protocol", version = "0.75.1", features = ["plugin"]}
|
nu-protocol = { path="../nu-protocol", version = "0.75.1", features = ["plugin"]}
|
||||||
|
@ -9,6 +9,11 @@ version = "0.75.1"
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "nu_plugin_gstat"
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
||||||
|
@ -9,6 +9,11 @@ version = "0.75.1"
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "nu_plugin_inc"
|
||||||
|
bench = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
||||||
|
@ -9,6 +9,12 @@ version = "0.75.1"
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "nu_plugin_query"
|
||||||
|
bench = false
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
nu-plugin = { path="../nu-plugin", version = "0.75.1" }
|
||||||
|
Loading…
Reference in New Issue
Block a user