You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add note about converting triple case in environment variables
This wasn't obvious to me, since `CARGO_TARGET_x86_64-unknown-linux-gnu_LINKER` is a perfectly valid environment variable name. It's especially important to document environment variable names well because if you get it wrong it is just silently ignored.
*`CARGO_REGISTRIES_<name>_TOKEN` — Authentication token of a registry, see [`registries.<name>.token`].
99
99
*`CARGO_REGISTRY_DEFAULT` — Default registry for the `--registry` flag, see [`registry.default`].
100
100
*`CARGO_REGISTRY_TOKEN` — Authentication token for [crates.io], see [`registry.token`].
101
-
*`CARGO_TARGET_<triple>_LINKER` — The linker to use, see [`target.<triple>.linker`].
101
+
*`CARGO_TARGET_<triple>_LINKER` — The linker to use, see [`target.<triple>.linker`]. The triple must be [converted to uppercase and underscores](config.md#environment-variables).
102
102
*`CARGO_TARGET_<triple>_RUNNER` — The executable runner, see [`target.<triple>.runner`].
103
103
*`CARGO_TARGET_<triple>_RUSTFLAGS` — Extra `rustc` flags for a target, see [`target.<triple>.rustflags`].
104
104
*`CARGO_TERM_VERBOSE` — The default terminal verbosity, see [`term.verbose`].
0 commit comments