Skip to content

Commit b67e591

Browse files
committed
doc(man): add temp-target-dir variable
1 parent bf5a5d5 commit b67e591

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/doc/man/cargo-install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# cargo-install(1)
22
{{*set actionverb="Install"}}
3+
{{*set temp-target-dir=true}}
34

45
## NAME
56

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{{#option "`--target-dir` _directory_"}}
22
Directory for all generated artifacts and intermediate files. May also be
33
specified with the `CARGO_TARGET_DIR` environment variable, or the
4-
`build.target-dir` [config value](../reference/config.html). Defaults
5-
to `target` in the root of the workspace.
4+
`build.target-dir` [config value](../reference/config.html).
5+
{{#if temp-target-dir}} Defaults to a new temporary folder located in the
6+
temporary directory of the platform.
7+
{{else}} Defaults to `target` in the root of the workspace.
8+
{{/if}}
69
{{/option}}

0 commit comments

Comments
 (0)