This is libzip, packaged for Zig.
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/libzip.git#1.11.2
You can then import libzip in your build.zig with:
const bzip_dependency = b.dependency("libzip", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("zip"));Crypto and LZMA are not supported right now.