Alex Crichton 70dc4d8331 Don't use $CARGO_BUILD_TARGET in cargo metadata
This commit fixes a (five year old!) regression in `cargo metadata`
where if `--filter-platform` isn't explicitly specified it will
accidentally read `$CARGO_BUILD_TARGET` (or `build.target`
configuration) and use that as the default `--filter-platform`. The
reason for this is that the calculation for targets changed in #8167
and while the shared function makes sense for other commands such as
`cargo build` the targets have a different meaning in `cargo metadata`
so a slightly different set of functionality is desired.

This commit fixes the issue by introducing a new constructor for the
list of `CompileKind` variants where the fallback of "if nothing is
specified" is explicitly chosen.
2025-03-06 09:00:00 -08:00
..
2025-02-26 14:57:14 -06:00
2025-01-04 14:37:39 +00:00
2024-11-25 09:27:09 -06:00
2025-02-23 17:37:39 -05:00
2024-11-25 09:27:09 -06:00
2025-02-23 17:37:39 -05:00
2024-11-25 09:27:09 -06:00
2025-01-13 10:40:13 -06:00
2025-02-28 09:18:07 -06:00
2024-07-26 23:26:48 +08:00
2024-11-25 09:27:09 -06:00
2025-02-26 14:57:14 -06:00
2024-11-15 09:33:23 -06:00