bevy/tools
Zachary Harrold a588ceeb49
Improve and Debug CI compile-check-no-std Command (#15935)
# Objective

- Fix bug where `cargo run -p ci` fails due to differing implementations
for default values between `Default` trait and `argh`
- Automatically install target via `rustup` to make first-run simpler.

## Solution

The command will now attempt to install the target via `rustup` by
default, which will provide a cleaner error message if a malformed
target is passed. It will also avoid confusion when people attempt to
use this tool for the first time without the target already installed.

I've added a flag, --skip-install, to disable the attempted installation
just-in-case. (e.g., maybe rustup isn't in their path but cargo is?).

Also fixed a bug where the default value for `target` was different
between the `Default` trait and `argh`, causing `cargo run -p ci` to
fail.

## Testing

- CI
- Subcommand ran directly

## Notes

This issue was originally discovered by @targrub (on Discord):

> Unfortunately, running `cargo run -p ci` still gives that same error
as I initially reported (though `cargo run -p ci --
compile-check-no-std` succeeds). This is after having run `rustup target
add x86_64-unknown-none`.
2024-10-15 23:45:23 +00:00
..
build-templated-pages Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
build-wasm-example Fix common capitalization errors in documentation (#14562) 2024-07-31 21:16:05 +00:00
ci Improve and Debug CI compile-check-no-std Command (#15935) 2024-10-15 23:45:23 +00:00
compile_fail_utils compile_fail_utils: Verify path exists (#14827) 2024-08-22 16:54:26 +00:00
example-showcase Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
publish.sh Add new crates to publish.sh (#15700) 2024-10-07 18:46:13 +00:00