Commit 38fdc9b
fix(#99): wire the root Justfile to real cargo targets
Every build-ish recipe was a fake gate:
build:
@echo "Build not configured yet"
`just build`, `test`, `fmt`, `lint` and `clean` all printed a string and exited
0, so any caller — human or CI — got a pass for doing nothing.
Wired to the same commands the root rust-ci.yml gate runs, in the same order, so
`just check` locally means what CI means:
build -> cargo build --locked --all-targets, then --release
test -> cargo test --locked --bins
fmt -> cargo fmt --check (fmt-fix applies)
lint -> cargo clippy --locked --all-targets
deps-check -> the zero-dependency assertion, copied from rust-ci.yml
check -> build test fmt deps-check
self-verify -> run aletheia against this repository
Two deliberate limits, documented in the recipes so nobody "fixes" them:
- `test` is `--bins` only. The integration suite is a specification for a CLI
that does not exist yet; 27 of 29 fail by design (#124). Adding `--tests`
here would make the bar green by breaking it.
- `lint` is not yet `-D warnings`; 23 findings remain (#125). When that
closes, `-D warnings` must be added HERE AND to rust-ci.yml in the same
change, so local and CI never disagree about what "lint passes" means.
Verified by running them, not by reading them:
just --list parses; just deps-check -> "OK: zero dependencies";
just test -> 29 passed; just check -> exit 0.
And verified the gate can actually FAIL, which is the whole point: appending
badly-formatted Rust makes `just fmt` exit 1 while `just build` still exits 0,
and reverting restores exit 0.
Closes #99.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 50ab7f4 commit 38fdc9b
1 file changed
Lines changed: 44 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | | - | |
| 20 | + | |
16 | 21 | | |
17 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | | - | |
| 27 | + | |
20 | 28 | | |
21 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | | - | |
| 35 | + | |
24 | 36 | | |
25 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
26 | 61 | | |
27 | 62 | | |
28 | 63 | | |
29 | | - | |
| 64 | + | |
30 | 65 | | |
31 | 66 | | |
32 | 67 | | |
| |||
0 commit comments