Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 519 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 519 Bytes

zlib

This is zlib, packaged for Zig.

How to use it

First, update your build.zig.zon:

zig fetch --save https://github.com/allyourcodebase/zlib/archive/refs/tags/1.3.1.tar.gz

Next, add this snippet to your build.zig script:

const zlib_dep = b.dependency("zlib", .{
    .target = target,
    .optimize = optimize,
});
your_compilation.linkLibrary(libz_dep.artifact("z"));

This will provide zlib as a static library to your_compilation.