mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Auto merge of #6345 - dlaehnemann:docs_correct-profile-usage-info, r=ehuss
docs: correct profile usage of `cargo test --release` From trying it out on a project (see <https://github.com/PROSIC/libprosic/pull/54#issuecomment-441211463>), I have realised that the `profile` usage by `cargo test --release` differs from what is documented in the cargo book. So here comes my correction suggestion...
This commit is contained in:
commit
e3435d105d
@ -341,7 +341,8 @@ incremental = true # whether or not incremental compilation is enabled
|
||||
overflow-checks = true # use overflow checks for integer arithmetic.
|
||||
# Passes the `-C overflow-checks=...` flag to the compiler.
|
||||
|
||||
# The release profile, used for `cargo build --release`.
|
||||
# The release profile, used for `cargo build --release` (and the dependencies
|
||||
# for `cargo test --release`, including the local library or binary).
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
debug = false
|
||||
@ -353,7 +354,8 @@ panic = 'unwind'
|
||||
incremental = false
|
||||
overflow-checks = false
|
||||
|
||||
# The testing profile, used for `cargo test`.
|
||||
# The testing profile, used for `cargo test` (for `cargo test --release` see
|
||||
# the `release` and `bench` profiles).
|
||||
[profile.test]
|
||||
opt-level = 0
|
||||
debug = 2
|
||||
@ -365,7 +367,8 @@ panic = 'unwind'
|
||||
incremental = true
|
||||
overflow-checks = true
|
||||
|
||||
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
|
||||
# The benchmarking profile, used for `cargo bench` (and the test targets and
|
||||
# unit tests for `cargo test --release`).
|
||||
[profile.bench]
|
||||
opt-level = 3
|
||||
debug = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user