libzip ported to the zig build system
  • Zig 78.5%
  • C 21.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej 'vesim' Kuliński 6e06eaff35 Initial commit
2025-07-17 06:31:31 +02:00
.github/workflows Initial commit 2025-07-17 06:31:31 +02:00
src Initial commit 2025-07-17 06:31:31 +02:00
.gitattributes Initial commit 2025-07-17 06:31:31 +02:00
build.zig Initial commit 2025-07-17 06:31:31 +02:00
build.zig.zon Initial commit 2025-07-17 06:31:31 +02:00
LICENSE Initial commit 2025-07-17 06:31:31 +02:00
LICENSE-LIBZIP Initial commit 2025-07-17 06:31:31 +02:00
README.md Initial commit 2025-07-17 06:31:31 +02:00

CI

libzip

This is libzip, 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/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"));

Notes

Crypto and LZMA are not supported right now.