Commit c172da2
authored
fix(verisim-document): tantivy 0.26 collector API — add .order_by_score() (#76)
## Summary
- Single-line fix in `rust-core/verisim-document/src/lib.rs:279`:
`TopDocs::with_limit(N)` no longer implements `Collector` in tantivy
0.26 — must select an ordering. `.order_by_score()` preserves existing
semantics and return shape.
- Drops the stale tantivy-0.25-era CVE-mitigation comment block from
workspace `Cargo.toml`. Both referenced advisories are now resolved by
the natural transitive upgrade (lz4_flex 0.11.5 → 0.13.1, lru 0.12.5 →
0.16.4 — verified in `Cargo.lock`).
## Impact on CI
Unblocks **13 of 16 failing checks** on `origin/main` HEAD. Every
Rust-side red (cargo test, clippy, cargo doc, cargo audit, cargo deny,
llvm-cov, benchmarks compile, both fuzz targets, Rust build validation,
Elixir build validation, compile+test, ExCoveralls) cascaded from this
one compile error in verisim-document.
Remaining red on main after this lands:
- governance / Workflow security linter + governance / Language /
package anti-pattern policy — surface from the standards reusable
@861b5e9
- scorecard — token-permissions + code-review signals (systemic, not
workflow-config)
- dispatch — dogfood-gate A2ML manifest cosmetic
Those are in scope for separate follow-ups; this PR is the keystone.
## Test plan
- [x] Local cargo check -p verisim-document clean
- [x] Local cargo check --workspace --all-targets clean (26.08s)
- [ ] CI rust-ci / build-validation / fuzz / cargo deny / cargo audit /
benchmarks compile / llvm-cov green on PR
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent bc570ad commit c172da2
2 files changed
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 129 | + | |
146 | 130 | | |
147 | 131 | | |
148 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
0 commit comments