Commit 301461a
committed
ci(rust): add build/test/clippy gate; make the crates clippy-clean
The only Rust CI was CodeQL in build-mode `none` (buildless), so nothing
ever compiled or tested robot-repo-automaton / shared-context / dashboard
— which is how the non-compiling content-match path reached `main` before
it was fixed in the prior PR. Add `.github/workflows/rust.yml`: a per-crate
matrix running `cargo build --all-targets`, `cargo test`, and
`cargo clippy --all-targets -- -D warnings` (blocking), with
`cargo fmt --check` informational (there is pre-existing formatting drift —
~180 hunks — that is intentionally not gated yet).
To make the clippy gate pass, fix the existing findings:
- fixer.rs: drop a no-op `.replace("hyperpolymath", "hyperpolymath")`.
- registry_guard.rs: use `split_once('/')` instead of a manual `splitn(2)`.
- exclusion_registry.rs: rename the inherent `from_str` -> `parse` (it is
not a `FromStr` impl; matches `Catalog::parse`) and use `if let Ok(..)`
instead of `.ok()` + `if let Some(..)`.
- hypatia.rs / main.rs: accept `&Path` instead of `&PathBuf`.
- Cargo.toml (robot-repo-automaton + shared-context): drop the ignored
`+spec-1.1.0` build metadata from the `toml` version requirement
(resolution-neutral; silences the cargo warning).
- benches: import `std::hint::black_box` (criterion's re-export is deprecated).
All three crates are clippy `-D warnings` clean; 101 + 84 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RozeeLxpJsd3WWFngaZWz31 parent 4a10dde commit 301461a
10 files changed
Lines changed: 71 additions & 284 deletions
File tree
- .github/workflows
- dashboard
- robot-repo-automaton
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments