zstd ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-03 23:03:52 +02:00
.github/workflows test with Zig 0.16.0 in CI 2026-04-21 16:14:29 +02:00
.gitattributes initial commit 2024-07-25 19:45:31 +02:00
.gitignore test with Zig 0.16.0 in CI 2026-04-21 16:14:29 +02:00
build.zig Methods relative to compilation are applied to the module 2026-01-03 03:17:24 +01:00
build.zig.zon release 1.5.7-2 2026-06-03 23:03:52 +02:00
LICENSE initial commit 2024-07-25 19:45:31 +02:00
LICENSE-ZSTD initial commit 2024-07-25 19:45:31 +02:00
README.md release 1.5.7-2 2026-06-03 23:03:52 +02:00

CI

zstd

This is zstd, 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/zstd.git#1.5.7-2

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

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