/build - Build and Lint
Build the project and run all linting checks.
Usage
- •
/build- Full build with format and lint checks - •
/build quick- Just compile, skip lint - •
/build lint- Only run lint checks
Instructions
When the user invokes /build:
- •
Full build (default, no argument): Run these commands in sequence:
bashcargo fmt --all -- --check
bashcargo build
bashCXX=clang++ cargo clippy --all-targets
- •
Quick build (
quickargument):bashcargo build
- •
Lint only (
lintargument):bashcargo fmt --all -- --check && CXX=clang++ cargo clippy --all-targets
Notes
- •
CXX=clang++is required for clippy due to GraphBLAS FFI bindings - •In the devcontainer,
CXX=clang++-21is automatically set - •Format check uses the project's
rustfmt.tomlconfiguration - •For release builds, use
cargo build --release - •This skill works both inside and outside the devcontainer
If any step fails, report the errors clearly and help fix them.