Skip to content

Commit 41f788a

Browse files
committed
docs: specify profile usage for cargo test --release
1 parent b606256 commit 41f788a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/src/reference/manifest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ incremental = true # whether or not incremental compilation is enabled
341341
overflow-checks = true # use overflow checks for integer arithmetic.
342342
# Passes the `-C overflow-checks=...` flag to the compiler.
343343

344-
# The release profile, used for `cargo build --release` and `cargo test --release`.
344+
# The release profile, used for `cargo build --release` (and the dependencies for `cargo test --release`, including the local lib/bin).
345345
[profile.release]
346346
opt-level = 3
347347
debug = false
@@ -353,7 +353,7 @@ panic = 'unwind'
353353
incremental = false
354354
overflow-checks = false
355355

356-
# The testing profile, used for `cargo test`.
356+
# The testing profile, used for `cargo test` (for `cargo test --release` see the `release` and `bench` profiles).
357357
[profile.test]
358358
opt-level = 0
359359
debug = 2
@@ -365,7 +365,7 @@ panic = 'unwind'
365365
incremental = true
366366
overflow-checks = true
367367

368-
# The benchmarking profile, used for `cargo bench`.
368+
# The benchmarking profile, used for `cargo bench` (and the test targets and unit tests for `cargo test --release`).
369369
[profile.bench]
370370
opt-level = 3
371371
debug = false

0 commit comments

Comments
 (0)