| 1 | # fabrica task runner. `just check` is the quality gate that MUST pass after |
| 2 | # every unit of work. `nix flake check` is the superset. |
| 3 | |
| 4 | # List available recipes. |
| 5 | default: |
| 6 | @just --list |
| 7 | |
| 8 | # The quality gate: format, check, lint, test. Run after every unit of work. |
| 9 | check: fmt-check build clippy test |
| 10 | |
| 11 | # Verify formatting without modifying files. |
| 12 | fmt-check: |
| 13 | cargo fmt --all -- --check |
| 14 | |
| 15 | # Format the workspace in place. |
| 16 | fmt: |
| 17 | cargo fmt --all |
| 18 | |
| 19 | # Type-check the whole workspace, including tests and examples. |
| 20 | build: |
| 21 | cargo check --workspace --all-targets |
| 22 | |
| 23 | # Lint with clippy, denying all warnings. |
| 24 | clippy: |
| 25 | cargo clippy --workspace --all-targets -- -D warnings |
| 26 | |
| 27 | # Run the test suite. |
| 28 | test: |
| 29 | cargo test --workspace |
| 30 | |
| 31 | # Run the full Nix gate (checks.{clippy,fmt,test,deny,doc}). |
| 32 | flake-check: |
| 33 | nix flake check |