Commit 11d8542
committed
chore: update deps, silence warnings, and improve caching/locking
- Cargo.lock: add/adjust packages (atty, dirs 5.0.1, dotenv, hermit-abi 0.1.19, redox_users 0.4.6) and add older windows-targets/windows_* entries; bump windows-sys usages to 0.61.1 where needed.
- crates/codegraph-mcp: add workspace deps (once_cell, lru, atty) in Cargo.toml; integrate indicatif MultiProgress into indexer CLI and switch tracing to a fmt layer.
- FAISS/Vector caching: use once_cell::sync::Lazy statics, store IndexImpl behind parking_lot::Mutex/Arc in INDEX_CACHE, update get_cached_index signature and lock before search; convert EMBEDDING_GENERATOR and QUERY_RESULT_CACHE to Lazy.
- Lint/cleanup: add #![allow(dead_code, unused_variables, unused_imports,...)] to many modules; prefix unused locals with _ to suppress warnings; remove unused imports and simplify imports across multiple files.
- Various small refactors/bugfixes:
- Use write lock / as_mut when FAISS API requires mutable access.
- Pass file collection config through indexer flow and fix parser borrow.
- Minor type/import adjustments in parser, graph, and vector crates to reduce unused symbols and tighten signatures.
- Small safety/clarity tweaks in onnx, context retriever, search, and insights generator modules.
These changes are primarily maintenance: keep the workspace compiling cleanly, reduce warnings, and improve concurrent caching for vector indexes.1 parent 3002d05 commit 11d8542
File tree
33 files changed
+289
-96
lines changed- crates
- codegraph-graph/src
- codegraph-mcp
- src
- bin
- codegraph-parser/src
- codegraph-vector/src
- ml
- rag
33 files changed
+289
-96
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments