Weihang Lo f2932725b0
fix: use host-tuple for host target subsitution (#16003)
### What does this PR try to resolve?

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 should address both concerns in
<https://github.com/rust-lang/cargo/issues/13051#issuecomment-3313262589>:

* "host-tuple" is aligned with `rustc --print host-tuple`, and doesn't
sound like a default behavior.
* Given "host" is not used, we reserved the future possibility to reset
to the default behavior
2025-09-24 11:31:26 +00:00
..