fix: use host-tuple for host target subsitution

The "host" string is ambiguous

* We have `-Zhost-config` that config `[host]` table applies to
  artifacts running on host, such as build scripts and proc macros.
* `host` sounds like the default behavior, whereas `--target host`
  is in the cross-compilation mode: `target/<triple>/debug`.
* We might want to reserve `host` for future use
This commit is contained in:
Weihang Lo 2025-09-23 19:56:49 -04:00
parent b4cdb55eda
commit a5c8b96f82
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
47 changed files with 68 additions and 66 deletions

View File

@ -87,10 +87,10 @@ impl CompileKind {
let deduplicated_targets = targets
.iter()
.map(|value| {
// This neatly substitutes the manually-specified `host` target directive
// This neatly substitutes the manually-specified `host-tuple` target directive
// with the compiling machine's target triple.
if value.as_str() == "host" {
if value.as_str() == "host-tuple" {
let host_triple = env!("RUST_HOST_TARGET");
Ok(CompileKind::Target(CompileTarget::new(host_triple)?))
} else {

View File

@ -1263,10 +1263,12 @@ fn get_target_triples() -> Vec<clap_complete::CompletionCandidate> {
}
}
// Allow tab-completion for `host` as the desired target.
candidates.push(clap_complete::CompletionCandidate::new("host").help(Some(
// Allow tab-completion for `host-tuple` as the desired target.
candidates.push(
clap_complete::CompletionCandidate::new("host-tuple").help(Some(
concat!("alias for: ", env!("RUST_HOST_TARGET")).into(),
)));
)),
);
candidates
}

View File

@ -228,8 +228,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -145,8 +145,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -142,8 +142,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -53,8 +53,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -124,8 +124,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -33,8 +33,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -216,8 +216,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -194,8 +194,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -196,8 +196,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -117,8 +117,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -69,8 +69,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -136,8 +136,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -136,8 +136,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -250,8 +250,8 @@ OPTIONS
o Any supported target in rustc --print target-list.
o "host", which will internally be substituted by the hosts
target. This can be particularly useful if youre
o "host-tuple", which will internally be substituted by the
hosts target. This can be particularly useful if youre
cross-compiling some crates, and dont want to specify your
hosts machine as a target (for instance, an xtask in a shared
project that may be worked on by many hosts).

View File

@ -7,7 +7,7 @@
Possible values:
- Any supported target in `rustc --print target-list`.
- `"host"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
- `"host-tuple"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.

View File

@ -261,7 +261,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -176,7 +176,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -172,7 +172,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -64,7 +64,7 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -153,7 +153,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -34,7 +34,7 @@ you plan to use Cargo without a network with the `--offline` flag.
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -252,7 +252,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -217,7 +217,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -207,7 +207,7 @@ single quotes or double quotes around each pattern.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -127,7 +127,7 @@ single quotes or double quotes around each pattern.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -93,7 +93,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -165,7 +165,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -171,7 +171,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -283,7 +283,7 @@ be specified multiple times, which enables all specified features.</dd>
<p>Possible values:</p>
<ul>
<li>Any supported target in <code>rustc --print target-list</code>.</li>
<li><code>"host"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li><code>"host-tuple"</code>, which will internally be substituted by the hosts target. This can be particularly useful if youre cross-compiling some crates, and dont want to specify your hosts machine as a target (for instance, an <code>xtask</code> in a shared project that may be worked on by many hosts).</li>
<li>A path to a custom target specification. See <a href="../../rustc/targets/custom.html#custom-target-lookup-path">Custom Target Lookup Path</a> for more information.</li>
</ul>
<p>This may also be specified with the <code>build.target</code> <a href="../reference/config.html">config value</a>.</p>

View File

@ -462,7 +462,7 @@ The default [target platform triples][target triple] to compile to.
Possible values:
- Any supported target in `rustc --print target-list`.
- `"host"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
- `"host-tuple"`, which will internally be substituted by the host's target. This can be particularly useful if you're cross-compiling some crates, and don't want to specify your host's machine as a target (for instance, an `xtask` in a shared project that may be worked on by many hosts).
- A path to a custom target specification. See [Custom Target Lookup Path](../../rustc/targets/custom.html#custom-target-lookup-path) for more information.
Can be overridden with the `--target` CLI option.

View File

@ -277,7 +277,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -176,7 +176,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -172,7 +172,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -67,7 +67,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -147,7 +147,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -35,7 +35,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -267,7 +267,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -252,7 +252,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -249,7 +249,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -142,7 +142,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -82,7 +82,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -162,7 +162,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -164,7 +164,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -297,7 +297,7 @@ Possible values:
.RE
.sp
.RS 4
\h'-04'\(bu\h'+03'\fB"host"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
\h'-04'\(bu\h'+03'\fB"host\-tuple"\fR, which will internally be substituted by the host\[cq]s target. This can be particularly useful if you\[cq]re cross\-compiling some crates, and don\[cq]t want to specify your host\[cq]s machine as a target (for instance, an \fBxtask\fR in a shared project that may be worked on by many hosts).
.RE
.sp
.RS 4

View File

@ -157,7 +157,7 @@ fn target_host_arg() {
.file("src/lib.rs", r#""#)
.build();
p.cargo("build -v --target host")
p.cargo("build -v --target host-tuple")
.with_stderr_contains("[RUNNING] `rustc [..] --target [HOST_TARGET] [..]`")
.run();
}
@ -174,7 +174,7 @@ fn target_host_config() {
&format!(
r#"
[build]
target = "host"
target = "host-tuple"
"#,
),
)