README Source History Refs Reviews Compare Notes Search Review guide build: bootstrap gate tools through mise and cargo x bootstrap 977023e1334b1e9c406ee0b3eea4b72d15b2c25d
Oliver Jan Krylow <oliver@bugabinga.net > · 11 Sep 2026
unsigned
Browse files Compare with HEAD
cargo-nextest is pinned in mise.toml (aqua prebuilt, checksummed);
cargo_pup ships no binaries, so cargo x bootstrap installs its pinned
version on the pinned nightly after adding rust-src, rustc-dev, and
llvm-tools. cargo x check now runs end to end on a fresh clone with
mise install plus cargo x bootstrap.
Changed files (3) Diff layout Auto Unified Split
new file mode 100644+9 / −0 text lines
6 + "aqua:nextest-rs/nextest/cargo-nextest" = "0.9.144" xtask/src/main.rs Modified +69 / −2 text lines
16 16 const HELP : &str = concat! (const HELP : &str = concat! (17 - "usage: cargo x <check|lint|fmt|test|doc|arch|pup|audit>\n" ,17 + "usage: cargo x <check|lint|fmt|test|doc|arch|pup|audit|bootstrap >\n" ,18 18 " cargo x dev [args...] build and launch the dev smith binary\n" , " cargo x dev [args...] build and launch the dev smith binary\n" ,
22 + const PINNED_NIGHTLY : &str = "+nightly-2026-01-22" ;25 + const PUP_VERSION : &str = "0.1.8" ;20 26 const CRATES : & [&str ] = & [const CRATES : & [&str ] = & [22 28 "smith-core" , "smith-core" ,49 55 Some ("arch" ) => arch (), Some ("arch" ) => arch (),50 56 Some ("pup" ) => cargo_pup (), Some ("pup" ) => cargo_pup (),51 57 Some ("audit" ) => audit (), Some ("audit" ) => audit (),
58 + Some ("bootstrap" ) => bootstrap (),52 59 _ => fail (HELP ), _ => fail (HELP ),99 106 fn cargo_pup () -> ExitCode {fn cargo_pup () -> ExitCode {100 - cargo (& ["+nightly-2026-01-22" , "pup" ])107 + cargo (& [PINNED_NIGHTLY , "pup" ])116 + fn bootstrap () -> ExitCode {117 + let steps: [Step; 3 ] = [add_pup_components, install_pup, report_nextest];121 + fn add_pup_components () -> ExitCode {128 + PINNED_NIGHTLY .trim_start_matches ('+' ),136 + 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 ;155 + fn report_nextest () -> ExitCode {156 + match Command::new("cargo" )157 + .args (["nextest" , "--version" ])158 + .stdout (std::process::Stdio::null())159 + .stderr (std::process::Stdio::null())162 + 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" ,103 170 fn cargo_doc () -> ExitCode {fn cargo_doc () -> ExitCode {