feat(core): add disk index cache infrastructure

Add xxhash-rust and bincode workspace dependencies for fast hashing and serialization. Implement cache_util for cache directory/path resolution with versioning, and IndexCache for saving/loading line indices to disk with file-hash validation.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-14 09:06:36 +08:00
parent 62a176441e
commit 2260d60302
6 changed files with 403 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["crates/core", "crates/gui", "crates/tui"]
members = ["crates/core", "crates/gui", "crates/tui", "crates/bench"]
default-members = ["crates/core"]
[workspace.dependencies]
@@ -25,3 +25,5 @@ clap = { version = "4", features = ["derive"] }
log-viewer-core = { path = "crates/core" }
textwrap = "0.16"
tempfile = "3"
xxhash-rust = { version = "0.8", features = ["xxh3"] }
bincode = "1"