Skip to content

Commit 291fb41

Browse files
committed
Reference options-target-dir in cargo install documentation
1 parent 1f2de1e commit 291fb41

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

src/doc/man/cargo-install.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ include::options-features.adoc[]
143143

144144
include::options-target-triple.adoc[]
145145

146+
include::options-target-dir.adoc[]
147+
146148
*--debug*::
147149
Build with the `dev` profile instead the `release` profile.
148150

src/doc/man/generated/cargo-install.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ <h3 id="cargo_install_compilation_options">Compilation Options</h3>
258258
<a href="../guide/build-cache.html">build cache</a> documentation for more details.</p>
259259
</div>
260260
</dd>
261+
<dt class="hdlist1"><strong>--target-dir</strong> <em>DIRECTORY</em></dt>
262+
<dd>
263+
<p>Directory for all generated artifacts and intermediate files. May also be
264+
specified with the <code>CARGO_TARGET_DIR</code> environment variable, or the
265+
<code>build.target-dir</code> <a href="../reference/config.html">config value</a>. Defaults
266+
to <code>target</code> in the root of the workspace.</p>
267+
</dd>
261268
<dt class="hdlist1"><strong>--debug</strong></dt>
262269
<dd>
263270
<p>Build with the <code>dev</code> profile instead the <code>release</code> profile.</p>

src/etc/man/cargo-install.1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: cargo-install
33
.\" Author: [see the "AUTHOR(S)" section]
44
.\" Generator: Asciidoctor 2.0.10
5-
.\" Date: 2020-06-14
5+
.\" Date: 2020-06-20
66
.\" Manual: \ \&
77
.\" Source: \ \&
88
.\" Language: English
99
.\"
10-
.TH "CARGO\-INSTALL" "1" "2020-06-14" "\ \&" "\ \&"
10+
.TH "CARGO\-INSTALL" "1" "2020-06-20" "\ \&" "\ \&"
1111
.ie \n(.g .ds Aq \(aq
1212
.el .ds Aq '
1313
.ss \n[.ss] 0
@@ -345,6 +345,16 @@ target artifacts are placed in a separate directory. See the
345345
documentation for more details.
346346
.RE
347347
.sp
348+
\fB\-\-target\-dir\fP \fIDIRECTORY\fP
349+
.RS 4
350+
Directory for all generated artifacts and intermediate files. May also be
351+
specified with the \fBCARGO_TARGET_DIR\fP environment variable, or the
352+
\fBbuild.target\-dir\fP \c
353+
.URL "https://doc.rust\-lang.org/cargo/reference/config.html" "config value" "."
354+
Defaults
355+
to \fBtarget\fP in the root of the workspace.
356+
.RE
357+
.sp
348358
\fB\-\-debug\fP
349359
.RS 4
350360
Build with the \fBdev\fP profile instead the \fBrelease\fP profile.

0 commit comments

Comments
 (0)