From e5bc8cc6e4a099f95d91fed8d3beb9504a64dafd Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 19 Dec 2019 18:20:14 -0800 Subject: [PATCH] Try to clarify dev/test profile selection. Closes #4438 --- src/doc/src/images/profile-selection.svg | 3 +++ src/doc/src/reference/profiles.md | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 src/doc/src/images/profile-selection.svg diff --git a/src/doc/src/images/profile-selection.svg b/src/doc/src/images/profile-selection.svg new file mode 100644 index 00000000000..4975383bf76 --- /dev/null +++ b/src/doc/src/images/profile-selection.svg @@ -0,0 +1,3 @@ + + +
lib
profile: dev
lib<br>profile: dev
lib (unit test)
profile: test
[Not supported by viewer]
dependency1
profile: dev
[Not supported by viewer]
integration test
profile: test
[Not supported by viewer]
bin (unit test)
profile: test
[Not supported by viewer]
bin (executable)
profile: dev
bin (executable)<br>profile: dev
dependency2
profile: dev
[Not supported by viewer]
dependency3
profile: dev
[Not supported by viewer]
Executables
[Not supported by viewer]
Profile selection for cargo test
Profile selection for <font face="Courier New">cargo test</font>
\ No newline at end of file diff --git a/src/doc/src/reference/profiles.md b/src/doc/src/reference/profiles.md index 88f01800b64..818bd59b3fa 100644 --- a/src/doc/src/reference/profiles.md +++ b/src/doc/src/reference/profiles.md @@ -304,6 +304,9 @@ profile. However, when building an integration test target, the library target is built with the `dev` profile and linked into the integration test executable. +![Profile selection for cargo test](../images/profile-selection.svg) + + [`cargo bench`]: ../commands/cargo-bench.md [`cargo build`]: ../commands/cargo-build.md [`cargo check`]: ../commands/cargo-check.md