From b606256fec5b111f7a0bed320c66aaad62fd8560 Mon Sep 17 00:00:00 2001 From: David Laehnemann Date: Fri, 23 Nov 2018 12:07:31 +0100 Subject: [PATCH 1/3] docs: correct profile usage of cargo test --release --- src/doc/src/reference/manifest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 9ff1bce7b..8a024baf8 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -341,7 +341,7 @@ 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 `cargo test --release`. [profile.release] opt-level = 3 debug = false @@ -365,7 +365,7 @@ 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`. [profile.bench] opt-level = 3 debug = false From 41f788aac209db28d8408a7347b9840f63c2097b Mon Sep 17 00:00:00 2001 From: David Laehnemann Date: Mon, 26 Nov 2018 12:51:19 +0100 Subject: [PATCH 2/3] docs: specify profile usage for cargo test --release --- src/doc/src/reference/manifest.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 8a024baf8..85e77afa9 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -341,7 +341,7 @@ 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` and `cargo test --release`. +# The release profile, used for `cargo build --release` (and the dependencies for `cargo test --release`, including the local lib/bin). [profile.release] opt-level = 3 debug = false @@ -353,7 +353,7 @@ 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 +365,7 @@ panic = 'unwind' incremental = true overflow-checks = true -# The benchmarking profile, used for `cargo bench`. +# 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 From a472e7c46f6df06f86bc3032181386087a1bb8c7 Mon Sep 17 00:00:00 2001 From: David Laehnemann Date: Tue, 27 Nov 2018 10:22:24 +0100 Subject: [PATCH 3/3] docs: requested clarification and word wrap for profiles doc --- src/doc/src/reference/manifest.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 85e77afa9..a5b40dc2b 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -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` (and the dependencies for `cargo test --release`, including the local lib/bin). +# 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` (for `cargo test --release` see the `release` and `bench` profiles). +# 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 the test targets and unit tests for `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