Verification · Static analysis · Type checking
Compiler as checker
In compiled languages the build is the type check; a failing build is this check failing.
How to build it
- Make the build step in CI the gate for type errors in compiled code.
- Run cargo check on pull requests for a fast type-only pass.
- Keep compiler warnings as errors in CI so type issues stop the pipeline.
Signals in a repository
- A CI job that runs cargo build or cargo check and fails the pipeline on error.
- Compiler flags such as -Werror or RUSTFLAGS set in CI configuration.
In practice
21 repositories run a tool for this check in the scanned set.
cargo-check· 21 repos
Examples
-
facebook/react ·
cargo-checkcargo check -
oven-sh/bun ·
cargo-checkcargo check --workspace --all-targets --keep-going -
warpdotdev/warp ·
cargo-checkcargo check --locked -p warp --lib --features agent_mode_evals -
aaif-goose/goose ·
cargo-checkcargo check --locked --target wasm32-unknown-unknown -p goose-agent -p goose-provider-types -
ruvnet/ruflo ·
cargo-checkcargo check --features native --verbose