lz4 ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-20 14:04:56 +02:00
.github/workflows update mlugg/setup-zig to v2 and test on Zig 0.15.x 2025-11-14 16:33:32 +01:00
.gitattributes initial commit 2024-08-15 13:55:18 +02:00
.gitignore Add zig-pkg to .gitignore 2026-10-20 14:04:56 +02:00
build.zig define XXH_NAMESPACE 2025-11-14 16:33:32 +01:00
build.zig.zon release 1.10.0-6 2025-11-14 16:35:23 +01:00
LICENSE initial commit 2024-08-15 13:55:18 +02:00
README.md release 1.10.0-6 2025-11-14 16:35:23 +01:00

CI

lz4

This is lz4, packaged for Zig.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/lz4.git#1.10.0-6

You can then import lz4 in your build.zig with:

const lz4_dependency = b.dependency("lz4", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(lz4_dependency.artifact("lz4"));