README Source History Refs Reviews Compare Notes Search Review guide ci: make cargo x bootstrap self-sufficient, drop mise bb40e56382ece281f87b50a38d4b5bb725cafd6a
Oliver Jan Krylow <oliver@bugabinga.net > · 11 Sep 2026
unsigned
Browse files Compare with HEAD
bootstrap now installs cargo-binstall, then the pinned cargo-nextest
through it, before adding the nightly components and building cargo_pup.
mise.toml is deleted because no gate tool depends on mise anymore, and
the Luci job shrinks to rustup components plus bootstrap and check.
Changed files (3) Diff layout Auto Unified Split
+0 / −1 text lines
1 1 job "check" {job "check" {2 2 image "docker.io/library/rust:latest" image "docker.io/library/rust:latest" 3 3 run "rustup component add rustfmt clippy" run "rustup component add rustfmt clippy" 4 - run "rustup toolchain install nightly-2026-01-22 --profile minimal --component rust-src,rustc-dev,llvm-tools"
5 4 run "cargo run -p xtask -- bootstrap" run "cargo run -p xtask -- bootstrap" 6 5 run "cargo run -p xtask -- check" run "cargo run -p xtask -- check" deleted file mode 100644+0 / −9 text lines
6 - "aqua:nextest-rs/nextest/cargo-nextest" = "0.9.144"
xtask/src/main.rs Modified +47 / −27 text lines
25 25 const PUP_VERSION : &str = "0.1.8" ;const PUP_VERSION : &str = "0.1.8" ;
28 + const NEXTEST_VERSION : &str = "0.9.144" ;31 + const BINSTALL_VERSION : &str = "latest" ;26 32 const CRATES : & [&str ] = & [const CRATES : & [&str ] = & [28 34 "smith-core" , "smith-core" ,116 122 fn bootstrap () -> ExitCode {fn bootstrap () -> ExitCode {117 - let steps: [Step; 3 ] = [add_pup_components, install_pup, report_nextest];123 + let steps: [Step; 3 ] = [install_binstall, install_nextest, install_pup];118 124 sequence (& steps) sequence (& steps)
127 + fn install_binstall () -> ExitCode {128 + tool_present (& ["binstall" , "--help" ], || {129 + cargo (& ["install" , "cargo-binstall" , "--version" , BINSTALL_VERSION ])133 + fn install_nextest () -> ExitCode {134 + tool_present (& ["nextest" , "--version" ], || {137 + & format! ("cargo-nextest@{NEXTEST_VERSION}" ),121 143 fn add_pup_components () -> ExitCode {fn add_pup_components () -> ExitCode {123 145 "rustup" , "rustup" ,136 158 fn install_pup () -> ExitCode {fn install_pup () -> ExitCode {137 - let already = Command::new("cargo" )138 - .args ([PINNED_NIGHTLY , "pup" , "--help" ])139 - .stdout (std::process::Stdio::null())140 - .stderr (std::process::Stdio::null())142 - .is_ok_and (|status| status.success ());144 - return ExitCode::SUCCESS ;159 + let components = sequence (& [add_pup_components]);160 + if components != ExitCode::SUCCESS {163 + tool_present (& [PINNED_NIGHTLY , "pup" , "--help" ], || {155 - fn report_nextest () -> ExitCode {156 - match Command::new(" cargo " )157 - .args (["nextest" , "--version" ])176 + fn tool_present (probe: & [&str ], install: impl FnOnce() -> ExitCode) -> ExitCode {177 + let mut arguments = vec! ["cargo" ];178 + arguments.extend_from_slice (probe);179 + match Command::new(arguments [ 0 ] )180 + .args (& arguments[1 .. ])158 181 .stdout (std::process::Stdio::null()) .stdout (std::process::Stdio::null())159 182 .stderr (std::process::Stdio::null()) .stderr (std::process::Stdio::null())160 183 .status () .status ()162 185 Ok (status) if status.success () => ExitCode::SUCCESS , Ok (status) if status.success () => ExitCode::SUCCESS ,164 - "cargo-nextest is missing: run `mise install` once,\n" ,165 - "it provides the pinned cargo-nextest from mise.toml\n" ,