README Source History Refs Reviews Compare Notes Search Review guide x ci locked and x release stub
e99ca1b9f2bd2ec803f41cbc73ddfbfa7e580c66
Oliver Jan Krylow <oliver@bugabinga.net > · 26 Sep 2026
unsigned
Browse files Compare with HEAD
Changed files (3) Diff layout Auto Unified Split
+1 / −2 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 "cargo run -p xtask -- bootstrap" 5 - run "cargo run -p xtask -- check" 4 + run "cargo run -p xtask -- ci" +2 / −1 text lines
47 47 - `smith-cli` unsafe only for OS terminal manipulation, with safe wrapper, `// SAFETY:`, and tests.- `smith-cli` unsafe only for OS terminal manipulation, with safe wrapper, `// SAFETY:`, and tests.48 48 - Public docs required.- Public docs required.49 49 - fmt, clippy, tests, docs, audit, arch, and architecture-test gates in CI.- fmt, clippy, tests, docs, audit, arch, and architecture-test gates in CI.50 - - Every `cargo x` command accepts argument passthrough; `-p` scoping overrides workspace defaults. Lockfile-wide commands (`audit`, `bootstrap`) reject scope explicitly.50 + - Every `cargo x` command accepts argument passthrough; `-p` scoping overrides workspace defaults. Lockfile-wide commands (`audit`, `bootstrap`, ` ci ` ) reject scope explicitly.51 + - Build steps run `--locked`; lockfile drift fails instead of silently updating.52 53 ## Architecture ## Architecture xtask/src/main.rs Modified +29 / −5 text lines
20 20 const HELP : &str = concat! (const HELP : &str = concat! (21 - "usage: cargo x <check|lint|fmt|test|doc|arch|mutants [args...]|audit|bootstrap>\n" ,21 + "usage: cargo x <check|lint|fmt|test|doc|arch|mutants [args...]|audit|ci|release| bootstrap>\n" ,22 22 " cargo x dev [args...] build and launch the dev smith binary\n" , " cargo x dev [args...] build and launch the dev smith binary\n" ,62 62 Some ("arch" ) => arch (& rest), Some ("arch" ) => arch (& rest),63 63 Some ("mutants" ) => cargo_mutants (& rest), Some ("mutants" ) => cargo_mutants (& rest),64 64 Some ("audit" ) => audit (& rest), Some ("audit" ) => audit (& rest),
65 + Some ("ci" ) => ci (& rest),66 + Some ("release" ) => release (& rest),65 67 Some ("bootstrap" ) => bootstrap (& rest), Some ("bootstrap" ) => bootstrap (& rest),66 68 _ => fail (HELP ), _ => fail (HELP ),
130 + fn ci (extra: & [OsString]) -> ExitCode {131 + if ! extra.is_empty () {132 + return fail ("ci is a fixed pipeline and admits no scoping\n" );134 + sequence (& [bootstrap, check, audit], extra)139 + fn release (extra: & [OsString]) -> ExitCode {141 + fail ("release gates are not defined yet; see SMH-PLAN-RELS0001\n" )185 203 fn cargo_clippy (extra: & [OsString]) -> ExitCode {fn cargo_clippy (extra: & [OsString]) -> ExitCode {186 204 let args = scoped ( let args = scoped (187 - & ["clippy" , "--workspace" , "--all-targets" , "--all-features" ],190 214 match Command::new("cargo" ) match Command::new("cargo" )201 225 fn cargo_nextest (extra: & [OsString]) -> ExitCode {fn cargo_nextest (extra: & [OsString]) -> ExitCode {202 - let args = scoped (& ["--workspace" , "--all-features" ], extra);226 + let args = scoped (& ["--locked " , " -- workspace" , "--all-features" ], extra);203 227 nextest_run_os (& args) nextest_run_os (& args)386 410 fn cargo_doc (extra: & [OsString]) -> ExitCode {fn cargo_doc (extra: & [OsString]) -> ExitCode {387 - let args = scoped (& ["doc" , "--workspace" , "--no-deps" ], extra);411 + let args = scoped (& ["doc" , "--locked " , " -- workspace" , "--no-deps" ], extra);388 412 run_os ("cargo" , & args) run_os ("cargo" , & args)404 428 fn dev (args: & [OsString]) -> ExitCode {fn dev (args: & [OsString]) -> ExitCode {405 - let code = cargo (& ["build" , "-p" , "smith-cli" , "--bin" , "smith" ]);429 + let code = cargo (& ["build" , "--locked " , " - p" , "smith-cli" , "--bin" , "smith" ]);406 430 if code != ExitCode::SUCCESS { if code != ExitCode::SUCCESS {407 431 return code; return code;