trending
•

20h ago

Treediff - AST code diff engine in Rust with move & rename detection

Treediff is an open-source (Apache-2.0) structural code diff engine in Rust powered by 17 Tree-sitter grammars. It uses an arena CST, dual exact/alpha Merkle hashing, and O(N log N) monolith alignment to detect moved functions, renamed symbols, and cross-file relocations—even in files with syntax errors. Every diff emits a byte-for-byte verified edit script, JSON v1.0 output, Git external diff integration, and C/Python FFI bindings.