File tree 29 files changed +77
-55
lines changed 29 files changed +77
-55
lines changed Original file line number Diff line number Diff line change 1
1
# cargo-install(1)
2
2
{{* set actionverb="Install"}}
3
+ {{* set temp-target-dir=true}}
3
4
4
5
## NAME
5
6
Original file line number Diff line number Diff line change @@ -190,7 +190,11 @@ OPTIONS
190
190
also be specified with the CARGO_TARGET_DIR environment variable, or
191
191
the build.target-dir config value
192
192
<https://doc.rust-lang.org/cargo/reference/config.html>. Defaults to
193
- target in the root of the workspace.
193
+ a new temporary folder located in the temporary directory of the
194
+ platform.
195
+
196
+ When using --path, by default it will use target directory in the
197
+ workspace of the local crate unless --target-dir is specified.
194
198
195
199
--debug
196
200
Build with the dev profile instead the release profile.
Original file line number Diff line number Diff line change 1
1
{{#option "` --target-dir ` _ directory_ "}}
2
2
Directory for all generated artifacts and intermediate files. May also be
3
3
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
+
8
+ When using ` --path ` , by default it will use ` target ` directory in the workspace
9
+ of the local crate unless ` --target-dir `
10
+ is specified.
11
+ {{else}} Defaults to ` target ` in the root of the workspace.
12
+ {{/if}}
6
13
{{/option}}
Original file line number Diff line number Diff line change @@ -250,8 +250,8 @@ target artifacts are placed in a separate directory. See the
250
250
<dt class =" option-term " id =" option-cargo-bench---target-dir " ><a class =" option-anchor " href =" #option-cargo-bench---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
251
251
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
252
252
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
253
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
254
- to <code >target</code > in the root of the workspace.</dd >
253
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
254
+ Defaults to <code >target</code > in the root of the workspace.</dd >
255
255
256
256
257
257
</dl >
Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ selection.</dd>
196
196
<dt class =" option-term " id =" option-cargo-build---target-dir " ><a class =" option-anchor " href =" #option-cargo-build---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
197
197
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
198
198
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
199
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
200
- to <code >target</code > in the root of the workspace.</dd >
199
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
200
+ Defaults to <code >target</code > in the root of the workspace.</dd >
201
201
202
202
203
203
Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ used.</dd>
210
210
<dt class =" option-term " id =" option-cargo-check---target-dir " ><a class =" option-anchor " href =" #option-cargo-check---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
211
211
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
212
212
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
213
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
214
- to <code >target</code > in the root of the workspace.</dd >
213
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
214
+ Defaults to <code >target</code > in the root of the workspace.</dd >
215
215
216
216
217
217
</dl >
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ the target directory.</dd>
47
47
<dt class =" option-term " id =" option-cargo-clean---target-dir " ><a class =" option-anchor " href =" #option-cargo-clean---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
48
48
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
49
49
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
50
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
51
- to <code >target</code > in the root of the workspace.</dd >
50
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
51
+ Defaults to <code >target</code > in the root of the workspace.</dd >
52
52
53
53
54
54
Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ selection.</dd>
167
167
<dt class =" option-term " id =" option-cargo-doc---target-dir " ><a class =" option-anchor " href =" #option-cargo-doc---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
168
168
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
169
169
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
170
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
171
- to <code >target</code > in the root of the workspace.</dd >
170
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
171
+ Defaults to <code >target</code > in the root of the workspace.</dd >
172
172
173
173
174
174
</dl >
Original file line number Diff line number Diff line change @@ -270,8 +270,8 @@ used.</dd>
270
270
<dt class =" option-term " id =" option-cargo-fix---target-dir " ><a class =" option-anchor " href =" #option-cargo-fix---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
271
271
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
272
272
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
273
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
274
- to <code >target</code > in the root of the workspace.</dd >
273
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
274
+ Defaults to <code >target</code > in the root of the workspace.</dd >
275
275
276
276
277
277
</dl >
Original file line number Diff line number Diff line change 1
1
# cargo-install(1)
2
2
3
3
4
+
4
5
## NAME
5
6
6
7
cargo-install - Build and install a Rust binary
@@ -215,8 +216,12 @@ target artifacts are placed in a separate directory. See the
215
216
<dt class =" option-term " id =" option-cargo-install---target-dir " ><a class =" option-anchor " href =" #option-cargo-install---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
216
217
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
217
218
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
218
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
219
- to <code >target</code > in the root of the workspace.</dd >
219
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
220
+ Defaults to a new temporary folder located in the
221
+ temporary directory of the platform. </p >
222
+ <p >When using <code >--path</code >, by default it will use <code >target</code > directory in the workspace
223
+ of the local crate unless <code >--target-dir</code >
224
+ is specified.</dd >
220
225
221
226
222
227
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ target artifacts are placed in a separate directory. See the
88
88
<dt class =" option-term " id =" option-cargo-package---target-dir " ><a class =" option-anchor " href =" #option-cargo-package---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
89
89
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
90
90
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
91
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
92
- to <code >target</code > in the root of the workspace.</dd >
91
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
92
+ Defaults to <code >target</code > in the root of the workspace.</dd >
93
93
94
94
95
95
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ target artifacts are placed in a separate directory. See the
96
96
<dt class =" option-term " id =" option-cargo-publish---target-dir " ><a class =" option-anchor " href =" #option-cargo-publish---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
97
97
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
98
98
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
99
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
100
- to <code >target</code > in the root of the workspace.</dd >
99
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
100
+ Defaults to <code >target</code > in the root of the workspace.</dd >
101
101
102
102
103
103
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ selection.</dd>
114
114
<dt class =" option-term " id =" option-cargo-run---target-dir " ><a class =" option-anchor " href =" #option-cargo-run---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
115
115
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
116
116
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
117
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
118
- to <code >target</code > in the root of the workspace.</dd >
117
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
118
+ Defaults to <code >target</code > in the root of the workspace.</dd >
119
119
120
120
121
121
</dl >
Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ selection.</dd>
183
183
<dt class =" option-term " id =" option-cargo-rustc---target-dir " ><a class =" option-anchor " href =" #option-cargo-rustc---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
184
184
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
185
185
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
186
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
187
- to <code >target</code > in the root of the workspace.</dd >
186
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
187
+ Defaults to <code >target</code > in the root of the workspace.</dd >
188
188
189
189
190
190
</dl >
Original file line number Diff line number Diff line change @@ -196,8 +196,8 @@ selection.</dd>
196
196
<dt class =" option-term " id =" option-cargo-rustdoc---target-dir " ><a class =" option-anchor " href =" #option-cargo-rustdoc---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
197
197
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
198
198
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
199
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
200
- to <code >target</code > in the root of the workspace.</dd >
199
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
200
+ Defaults to <code >target</code > in the root of the workspace.</dd >
201
201
202
202
203
203
</dl >
Original file line number Diff line number Diff line change @@ -276,8 +276,8 @@ selection.</dd>
276
276
<dt class =" option-term " id =" option-cargo-test---target-dir " ><a class =" option-anchor " href =" #option-cargo-test---target-dir " ></a ><code >--target-dir</code > <em >directory</em ></dt >
277
277
<dd class =" option-desc " >Directory for all generated artifacts and intermediate files. May also be
278
278
specified with the <code >CARGO_TARGET_DIR</code > environment variable, or the
279
- <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >. Defaults
280
- to <code >target</code > in the root of the workspace.</dd >
279
+ <code >build.target-dir</code > <a href =" ../reference/config.html " >config value</a >.
280
+ Defaults to <code >target</code > in the root of the workspace.</dd >
281
281
282
282
283
283
</dl >
Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ target artifacts are placed in a separate directory. See the
253
253
.RS 4
254
254
Directory for all generated artifacts and intermediate files. May also be
255
255
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
256
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
257
- to \fB target \fR in the root of the workspace.
256
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
257
+ Defaults to \fB target \fR in the root of the workspace.
258
258
.RE
259
259
.SS "Display Options"
260
260
By default the Rust test harness hides output from benchmark execution to keep
Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ selection.
181
181
.RS 4
182
182
Directory for all generated artifacts and intermediate files. May also be
183
183
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
184
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
185
- to \fB target \fR in the root of the workspace.
184
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
185
+ Defaults to \fB target \fR in the root of the workspace.
186
186
.RE
187
187
.sp
188
188
\fB \-\- out \- dir \fR \fI directory \fR
Original file line number Diff line number Diff line change @@ -195,8 +195,8 @@ used.
195
195
.RS 4
196
196
Directory for all generated artifacts and intermediate files. May also be
197
197
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
198
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
199
- to \fB target \fR in the root of the workspace.
198
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
199
+ Defaults to \fB target \fR in the root of the workspace.
200
200
.RE
201
201
.SS "Display Options"
202
202
.sp
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ Clean all artifacts that were built with the \fBrelease\fR or \fBbench\fR profil
40
40
.RS 4
41
41
Directory for all generated artifacts and intermediate files. May also be
42
42
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
43
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
44
- to \fB target \fR in the root of the workspace.
43
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
44
+ Defaults to \fB target \fR in the root of the workspace.
45
45
.RE
46
46
.sp
47
47
\fB \-\- target \fR \fI triple \fR
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ selection.
146
146
.RS 4
147
147
Directory for all generated artifacts and intermediate files. May also be
148
148
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
149
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
150
- to \fB target \fR in the root of the workspace.
149
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
150
+ Defaults to \fB target \fR in the root of the workspace.
151
151
.RE
152
152
.SS "Display Options"
153
153
.sp
Original file line number Diff line number Diff line change @@ -268,8 +268,8 @@ used.
268
268
.RS 4
269
269
Directory for all generated artifacts and intermediate files. May also be
270
270
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
271
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
272
- to \fB target \fR in the root of the workspace.
271
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
272
+ Defaults to \fB target \fR in the root of the workspace.
273
273
.RE
274
274
.SS "Display Options"
275
275
.sp
Original file line number Diff line number Diff line change @@ -246,8 +246,13 @@ target artifacts are placed in a separate directory. See the
246
246
.RS 4
247
247
Directory for all generated artifacts and intermediate files. May also be
248
248
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
249
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
250
- to \fB target \fR in the root of the workspace.
249
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
250
+ Defaults to a new temporary folder located in the
251
+ temporary directory of the platform.
252
+ .sp
253
+ When using \fB \-\- path \fR , by default it will use \fB target \fR directory in the workspace
254
+ of the local crate unless \fB \-\- target \- dir \fR
255
+ is specified.
251
256
.RE
252
257
.sp
253
258
\fB \-\- debug \fR
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ target artifacts are placed in a separate directory. See the
112
112
.RS 4
113
113
Directory for all generated artifacts and intermediate files. May also be
114
114
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
115
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
116
- to \fB target \fR in the root of the workspace.
115
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
116
+ Defaults to \fB target \fR in the root of the workspace.
117
117
.RE
118
118
.SS "Feature Selection"
119
119
The feature flags allow you to control which features are enabled. When no
Original file line number Diff line number Diff line change @@ -103,8 +103,8 @@ target artifacts are placed in a separate directory. See the
103
103
.RS 4
104
104
Directory for all generated artifacts and intermediate files. May also be
105
105
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
106
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
107
- to \fB target \fR in the root of the workspace.
106
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
107
+ Defaults to \fB target \fR in the root of the workspace.
108
108
.RE
109
109
.SS "Feature Selection"
110
110
The feature flags allow you to control which features are enabled. When no
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ selection.
92
92
.RS 4
93
93
Directory for all generated artifacts and intermediate files. May also be
94
94
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
95
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
96
- to \fB target \fR in the root of the workspace.
95
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
96
+ Defaults to \fB target \fR in the root of the workspace.
97
97
.RE
98
98
.SS "Display Options"
99
99
.sp
Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ selection.
167
167
.RS 4
168
168
Directory for all generated artifacts and intermediate files. May also be
169
169
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
170
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
171
- to \fB target \fR in the root of the workspace.
170
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
171
+ Defaults to \fB target \fR in the root of the workspace.
172
172
.RE
173
173
.SS "Display Options"
174
174
.sp
Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ selection.
176
176
.RS 4
177
177
Directory for all generated artifacts and intermediate files. May also be
178
178
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
179
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
180
- to \fB target \fR in the root of the workspace.
179
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
180
+ Defaults to \fB target \fR in the root of the workspace.
181
181
.RE
182
182
.SS "Display Options"
183
183
.sp
Original file line number Diff line number Diff line change @@ -277,8 +277,8 @@ selection.
277
277
.RS 4
278
278
Directory for all generated artifacts and intermediate files. May also be
279
279
specified with the \fB CARGO_TARGET_DIR \fR environment variable, or the
280
- \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& . Defaults
281
- to \fB target \fR in the root of the workspace.
280
+ \fB build.target \- dir \fR \fI config value \fR <https://doc.rust\- lang.org/cargo/reference/config.html>\& .
281
+ Defaults to \fB target \fR in the root of the workspace.
282
282
.RE
283
283
.SS "Display Options"
284
284
By default the Rust test harness hides output from test execution to keep
You can’t perform that action at this time.
0 commit comments