Skip to content

refactor(xtask): split subcommands into dedicated modules - #462

Merged
tisonkun merged 2 commits into
mainfrom
refactor/split-xtask
Nov 23, 2026
Merged

tisonkun merged 2 commits into
mainfrom
refactor/split-xtask

Conversation

@tisonkun

Copy link
Copy Markdown
Member

Summary

Split xtask/src/main.rs into per-subcommand modules (bench, build, check, lint, miri, semver, and test), keeping top-level CLI dispatch and shared process-execution helpers in main.rs while co-locating single-subcommand helpers and unit tests with their owning subcommand.

Validation

  • cargo x --help
  • cargo x lint
  • cargo x build --locked
  • cargo test -p x

Move `bench`, `build`, `check`, `lint`, `miri`, `semver`, and `test`
into dedicated modules under `xtask/src/`, keeping only top-level CLI
dispatch and shared command-execution helpers in `xtask/src/main.rs`.

Signed-off-by: tison <wander4096@gmail.com>
Follow the repository import convention by qualifying `process::Command`
and `process::ExitStatus` instead of `use std::process::Command as
StdCommand`.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
tisonkun merged commit 1cd795f into main Nov 23, 2026
9 checks passed
@tisonkun
tisonkun deleted the refactor/split-xtask branch November 23, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant