https://github.com/ziglibs/diffz
Implementation of go-diff's diffmatchpatch in Zig
https://github.com/ziglibs/diffz
Last synced: 10 days ago
JSON representation
Implementation of go-diff's diffmatchpatch in Zig
- Host: GitHub
- URL: https://github.com/ziglibs/diffz
- Owner: ziglibs
- License: mit
- Created: 2023-02-08T22:17:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T18:08:55.000Z (about 2 months ago)
- Last Synced: 2025-04-23T19:24:02.902Z (17 days ago)
- Language: Zig
- Size: 91.8 KB
- Stars: 23
- Watchers: 6
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - diffz🗒️Implementation of go-diff's diffmatchpatch in Zig
README
# diffz
An implementation of Google's diff-match-patch.
Currently implemented:
- [x] Diff
- [ ] Match
- [ ] Patch## Installation
> [!NOTE]
> The minimum supported Zig version is `0.14.0`.```bash
# Initialize a `zig build` project if you haven't already
zig init
# Add the `diffz` package to your `build.zig.zon`
zig fetch --save git+https://github.com/ziglibs/diffz.git
```You can then import `diffz` in your `build.zig` with:
```zig
const diffz = b.dependency("diffz", .{});
const exe = b.addExecutable(...);
exe.root_module.addImport("diffz", diffz.module("diffz"));
```## License
This library is based off of https://github.com/google/diff-match-patch, which is licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0). This library itself is licensed under the MIT License, see `LICENSE`.