Text diffing in zig
https://github.com/tomhoule/zig-diff
| src | fix depreacted min | |
| .envrc | Initial commit - play around | |
| .gitignore | Set up sructure from dissimilar | |
| build.zig | fix for latest zig | |
| flake.lock | nix flake update | |
| flake.nix | Initial commit - play around | |
| LICENSE | Create LICENSE | |
| README.md | Update README.md | |
zig-diff
Zig text diffing library inspired and partially based on diff-match-patch and David Tolnay's dissimilar Rust crate.
The basic approach is Myers' diff algorithm. Both bytewise diffing and utf-8 aware diffing are supported.
This project should be considered alpha quality, the test suite isn't particularly exhaustive and there are a number of improvements to be made for more readable diffs. The public API will change.
The diff-match-patch library and dissimilar implement semantic cleanups for more human-friendly, readable diffs. This is something we will implement in this library, but we don't have it yet.
This project is developed and tested on Zig 0.9.