Categories
Libraries
  • Github CLI
  • SSH
  • HTTPS
Clone Repo

diffz

An implementation of Google’s diff-match-patch.

Currently implemented:

  • Diff
  • Match
  • Patch

Installation

[!NOTE] The minimum supported Zig version is 0.14.0.

# 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:

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. This library itself is licensed under the MIT License, see LICENSE.

About
Implementation of go-diff's diffmatchpatch in Zig
Owner
ziglibs (Organization)
Last Commit
2025-03-21
Latest Release
Latest Release Date
Created
2023-02-08