Post

HN
Hacker News (Newest)

Show HN: Cargo-affect – Plan affected Rust workspace tests from a Git diff

Plan affected Rust workspace checks from git changes.

cargo-affect maps changed files to Cargo workspace packages, selects those packages plus reverse workspace dependents, and emits outputs for Cargo, cargo-nextest, and CI planners.

For scripts and tests, bypass git diff with explicit files:

Add affect.toml at the workspace root when conservative defaults need project knowledge:

WarpBuild is just one backend recipe. The important part is that the cache key uses stable dimensions rather than exact commit SHAs:

The core planner output is the same for all of them.

By lightsofapollo