mirror of
https://github.com/allyourcodebase/zstd.git
synced 2026-11-04 02:05:59 +00:00
zstd ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| LICENSE-ZSTD | ||
| README.md | ||
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"));