Skip to content

Commit f4bcaeb

Browse files
committed
Update docs for -Zmultitarget stabilization
1 parent 2717db3 commit f4bcaeb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+92
-67
lines changed

src/doc/man/cargo-bench.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-bench(1)
22
{{*set actionverb="Benchmark"}}
33
{{*set nouns="benchmarks"}}
4+
{{*set multitarget=true}}
45

56
## NAME
67

src/doc/man/cargo-build.md

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

45
## NAME
56

src/doc/man/cargo-check.md

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

45
## NAME
56

src/doc/man/cargo-clean.md

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

45
## NAME
56

src/doc/man/cargo-doc.md

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

45
## NAME
56

src/doc/man/cargo-fetch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-fetch(1)
22
{{*set actionverb="Fetch"}}
33
{{*set target-default-to-all-arch=true}}
4+
{{*set multitarget=true}}
45

56
## NAME
67

src/doc/man/cargo-fix.md

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

45
## NAME
56

src/doc/man/cargo-package.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-package(1)
22
{{*set actionverb="Package"}}
33
{{*set noall=true}}
4+
{{*set multitarget=true}}
45

56
## NAME
67

src/doc/man/cargo-publish.md

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

45
## NAME
56

src/doc/man/cargo-rustc.md

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

45
## NAME
56

src/doc/man/cargo-rustdoc.md

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

45
## NAME
56

src/doc/man/cargo-test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-test(1)
22
{{*set actionverb="Test"}}
33
{{*set nouns="tests"}}
4+
{{*set multitarget=true}}
45

56
## NAME
67

src/doc/man/generated_txt/cargo-bench.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ OPTIONS
208208
Benchmark for the given architecture. The default is the host
209209
architecture. The general format of the triple is
210210
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
211-
a list of supported targets.
211+
a list of supported targets. This flag may be specified multiple
212+
times.
212213

213214
This may also be specified with the build.target config value
214215
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-build.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ OPTIONS
140140
Build for the given architecture. The default is the host
141141
architecture. The general format of the triple is
142142
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
143-
a list of supported targets.
143+
a list of supported targets. This flag may be specified multiple
144+
times.
144145

145146
This may also be specified with the build.target config value
146147
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-check.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ OPTIONS
137137
Check for the given architecture. The default is the host
138138
architecture. The general format of the triple is
139139
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
140-
a list of supported targets.
140+
a list of supported targets. This flag may be specified multiple
141+
times.
141142

142143
This may also be specified with the build.target config value
143144
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-clean.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ OPTIONS
4343
Clean for the given architecture. The default is the host
4444
architecture. The general format of the triple is
4545
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
46-
a list of supported targets.
46+
a list of supported targets. This flag may be specified multiple
47+
times.
4748

4849
This may also be specified with the build.target config value
4950
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-doc.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ OPTIONS
115115
Document for the given architecture. The default is the host
116116
architecture. The general format of the triple is
117117
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
118-
a list of supported targets.
118+
a list of supported targets. This flag may be specified multiple
119+
times.
119120

120121
This may also be specified with the build.target config value
121122
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-fetch.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ OPTIONS
2828
Fetch for the given architecture. The default is all architectures.
2929
The general format of the triple is
3030
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
31-
a list of supported targets.
31+
a list of supported targets. This flag may be specified multiple
32+
times.
3233

3334
This may also be specified with the build.target config value
3435
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-fix.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ OPTIONS
210210
Fix for the given architecture. The default is the host
211211
architecture. The general format of the triple is
212212
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
213-
a list of supported targets.
213+
a list of supported targets. This flag may be specified multiple
214+
times.
214215

215216
This may also be specified with the build.target config value
216217
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-package.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ OPTIONS
112112
Package for the given architecture. The default is the host
113113
architecture. The general format of the triple is
114114
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
115-
a list of supported targets.
115+
a list of supported targets. This flag may be specified multiple
116+
times.
116117

117118
This may also be specified with the build.target config value
118119
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-publish.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ OPTIONS
7979
Publish for the given architecture. The default is the host
8080
architecture. The general format of the triple is
8181
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
82-
a list of supported targets.
82+
a list of supported targets. This flag may be specified multiple
83+
times.
8384

8485
This may also be specified with the build.target config value
8586
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-rustc.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ OPTIONS
131131
Build for the given architecture. The default is the host
132132
architecture. The general format of the triple is
133133
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
134-
a list of supported targets.
134+
a list of supported targets. This flag may be specified multiple
135+
times.
135136

136137
This may also be specified with the build.target config value
137138
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-rustdoc.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ OPTIONS
131131
Document for the given architecture. The default is the host
132132
architecture. The general format of the triple is
133133
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
134-
a list of supported targets.
134+
a list of supported targets. This flag may be specified multiple
135+
times.
135136

136137
This may also be specified with the build.target config value
137138
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/generated_txt/cargo-test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ OPTIONS
222222
Test for the given architecture. The default is the host
223223
architecture. The general format of the triple is
224224
<arch><sub>-<vendor>-<sys>-<abi>. Run rustc --print target-list for
225-
a list of supported targets.
225+
a list of supported targets. This flag may be specified multiple
226+
times.
226227

227228
This may also be specified with the build.target config value
228229
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/includes/options-target-triple.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{~/if}} The general format of the triple is
66
`<arch><sub>-<vendor>-<sys>-<abi>`. Run `rustc --print target-list` for a
77
list of supported targets.
8+
{{~#if multitarget }} This flag may be specified multiple times. {{~/if}}
89

910
This may also be specified with the `build.target`
1011
[config value](../reference/config.html).

src/doc/src/commands/cargo-bench.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44

5+
56
## NAME
67

78
cargo-bench - Execute benchmarks of a package
@@ -255,7 +256,7 @@ be specified multiple times, which enables all specified features.</dd>
255256
<dt class="option-term" id="option-cargo-bench---target"><a class="option-anchor" href="#option-cargo-bench---target"></a><code>--target</code> <em>triple</em></dt>
256257
<dd class="option-desc">Benchmark for the given architecture. The default is the host architecture. The general format of the triple is
257258
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
258-
list of supported targets.</p>
259+
list of supported targets. This flag may be specified multiple times.</p>
259260
<p>This may also be specified with the <code>build.target</code>
260261
<a href="../reference/config.html">config value</a>.</p>
261262
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-build.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-build(1)
22

33

4+
45
## NAME
56

67
cargo-build - Compile the current package
@@ -182,7 +183,7 @@ be specified multiple times, which enables all specified features.</dd>
182183
<dt class="option-term" id="option-cargo-build---target"><a class="option-anchor" href="#option-cargo-build---target"></a><code>--target</code> <em>triple</em></dt>
183184
<dd class="option-desc">Build for the given architecture. The default is the host architecture. The general format of the triple is
184185
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
185-
list of supported targets.</p>
186+
list of supported targets. This flag may be specified multiple times.</p>
186187
<p>This may also be specified with the <code>build.target</code>
187188
<a href="../reference/config.html">config value</a>.</p>
188189
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-check.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-check(1)
22

33

4+
45
## NAME
56

67
cargo-check - Check the current package
@@ -177,7 +178,7 @@ be specified multiple times, which enables all specified features.</dd>
177178
<dt class="option-term" id="option-cargo-check---target"><a class="option-anchor" href="#option-cargo-check---target"></a><code>--target</code> <em>triple</em></dt>
178179
<dd class="option-desc">Check for the given architecture. The default is the host architecture. The general format of the triple is
179180
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
180-
list of supported targets.</p>
181+
list of supported targets. This flag may be specified multiple times.</p>
181182
<p>This may also be specified with the <code>build.target</code>
182183
<a href="../reference/config.html">config value</a>.</p>
183184
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-clean.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-clean(1)
22

33

4+
45
## NAME
56

67
cargo-clean - Remove generated artifacts
@@ -59,7 +60,7 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
5960
<dt class="option-term" id="option-cargo-clean---target"><a class="option-anchor" href="#option-cargo-clean---target"></a><code>--target</code> <em>triple</em></dt>
6061
<dd class="option-desc">Clean for the given architecture. The default is the host architecture. The general format of the triple is
6162
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
62-
list of supported targets.</p>
63+
list of supported targets. This flag may be specified multiple times.</p>
6364
<p>This may also be specified with the <code>build.target</code>
6465
<a href="../reference/config.html">config value</a>.</p>
6566
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-doc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-doc(1)
22

33

4+
45
## NAME
56

67
cargo-doc - Build a package's documentation
@@ -155,7 +156,7 @@ be specified multiple times, which enables all specified features.</dd>
155156
<dt class="option-term" id="option-cargo-doc---target"><a class="option-anchor" href="#option-cargo-doc---target"></a><code>--target</code> <em>triple</em></dt>
156157
<dd class="option-desc">Document for the given architecture. The default is the host architecture. The general format of the triple is
157158
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
158-
list of supported targets.</p>
159+
list of supported targets. This flag may be specified multiple times.</p>
159160
<p>This may also be specified with the <code>build.target</code>
160161
<a href="../reference/config.html">config value</a>.</p>
161162
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-fetch.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44

5+
56
## NAME
67

78
cargo-fetch - Fetch dependencies of a package from the network
@@ -34,7 +35,7 @@ you plan to use Cargo without a network with the `--offline` flag.
3435
<dt class="option-term" id="option-cargo-fetch---target"><a class="option-anchor" href="#option-cargo-fetch---target"></a><code>--target</code> <em>triple</em></dt>
3536
<dd class="option-desc">Fetch for the given architecture. The default is all architectures. The general format of the triple is
3637
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
37-
list of supported targets.</p>
38+
list of supported targets. This flag may be specified multiple times.</p>
3839
<p>This may also be specified with the <code>build.target</code>
3940
<a href="../reference/config.html">config value</a>.</p>
4041
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-fix.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-fix(1)
22

33

4+
45
## NAME
56

67
cargo-fix - Automatically fix lint warnings reported by rustc
@@ -257,7 +258,7 @@ be specified multiple times, which enables all specified features.</dd>
257258
<dt class="option-term" id="option-cargo-fix---target"><a class="option-anchor" href="#option-cargo-fix---target"></a><code>--target</code> <em>triple</em></dt>
258259
<dd class="option-desc">Fix for the given architecture. The default is the host architecture. The general format of the triple is
259260
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
260-
list of supported targets.</p>
261+
list of supported targets. This flag may be specified multiple times.</p>
261262
<p>This may also be specified with the <code>build.target</code>
262263
<a href="../reference/config.html">config value</a>.</p>
263264
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-package.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44

5+
56
## NAME
67

78
cargo-package - Assemble the local package into a distributable tarball
@@ -133,7 +134,7 @@ single quotes or double quotes around each pattern.</dd>
133134
<dt class="option-term" id="option-cargo-package---target"><a class="option-anchor" href="#option-cargo-package---target"></a><code>--target</code> <em>triple</em></dt>
134135
<dd class="option-desc">Package for the given architecture. The default is the host architecture. The general format of the triple is
135136
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
136-
list of supported targets.</p>
137+
list of supported targets. This flag may be specified multiple times.</p>
137138
<p>This may also be specified with the <code>build.target</code>
138139
<a href="../reference/config.html">config value</a>.</p>
139140
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-publish.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-publish(1)
22

33

4+
45
## NAME
56

67
cargo-publish - Upload a package to the registry
@@ -99,7 +100,7 @@ format.</dd>
99100
<dt class="option-term" id="option-cargo-publish---target"><a class="option-anchor" href="#option-cargo-publish---target"></a><code>--target</code> <em>triple</em></dt>
100101
<dd class="option-desc">Publish for the given architecture. The default is the host architecture. The general format of the triple is
101102
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
102-
list of supported targets.</p>
103+
list of supported targets. This flag may be specified multiple times.</p>
103104
<p>This may also be specified with the <code>build.target</code>
104105
<a href="../reference/config.html">config value</a>.</p>
105106
<p>Note that specifying this flag makes Cargo run in a different mode where the

src/doc/src/commands/cargo-rustc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cargo-rustc(1)
22

33

4+
45
## NAME
56

67
cargo-rustc - Compile the current package, and pass extra options to the compiler
@@ -169,7 +170,7 @@ be specified multiple times, which enables all specified features.</dd>
169170
<dt class="option-term" id="option-cargo-rustc---target"><a class="option-anchor" href="#option-cargo-rustc---target"></a><code>--target</code> <em>triple</em></dt>
170171
<dd class="option-desc">Build for the given architecture. The default is the host architecture. The general format of the triple is
171172
<code>&lt;arch&gt;&lt;sub&gt;-&lt;vendor&gt;-&lt;sys&gt;-&lt;abi&gt;</code>. Run <code>rustc --print target-list</code> for a
172-
list of supported targets.</p>
173+
list of supported targets. This flag may be specified multiple times.</p>
173174
<p>This may also be specified with the <code>build.target</code>
174175
<a href="../reference/config.html">config value</a>.</p>
175176
<p>Note that specifying this flag makes Cargo run in a different mode where the

0 commit comments

Comments
 (0)