Docs.rs
semantic-diff-0.6.0
semantic-diff 0.6.0
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
alankyshum
Dependencies
anyhow ^1
normal
clap ^4
normal
crossterm ^0.29
normal
dirs ^6
normal
futures ^0.3
normal
ratatui ^0.30
normal
serde ^1.0.228
normal
serde_json ^1.0.149
normal
similar ^2
normal
syntect ^5.3
normal
terminal-light ^1.8.0
normal
tokio ^1
normal
tracing ^0.1
normal
tracing-subscriber ^0.3
normal
tui-tree-widget ^0.24
normal
unidiff ^0.4
normal
which ^8.0.2
normal
tempfile ^3
dev
Versions
42.98%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module cache
semantic_
diff
0.6.0
Module cache
Module Items
Functions
In crate semantic_
diff
semantic_diff
Module
cache
Copy item path
Source
Functions
ยง
diff_
hash
Compute a fast hash of the raw diff string.
get_
head_
commit
Return the current HEAD commit hash, or None if not in a git repo.
load
Try to load cached grouping for the given diff hash. Returns None if no cache, hash mismatch, parse error, or oversized file.
load_
incremental
Try to load cached grouping for the given HEAD commit (incremental mode). Returns the cached groups and file hashes so the caller can compute the delta. Returns None if no cache, HEAD mismatch, empty file hashes, parse error, or oversized file.
save_
with_
state
Save grouping result to the cache file with optional incremental state.