mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00

### What does this PR try to resolve? This PR resolves: https://github.com/rust-lang/cargo/issues/13051 Namely, it allows users to invoke cargo subcommands that accept a `--target` directive to specify the `host` target, which is later substituted in the command processing layer by the host's real target triple (for instance, on most Linux distributions, `cargo build --target host` would effectively run `cargo build --target x86_64-unknown-linux-gnu`). This additionally applies to usage within `config.toml`, like so: ```toml # .cargo/config.toml [build] target = "host" ```