bzip2 ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej 'vesim' Kuliński d7668d5ee5 Initial commit
2025-07-17 06:20:42 +02:00
.github/workflows Initial commit 2025-07-17 06:20:42 +02:00
.gitattributes Initial commit 2025-07-17 06:20:42 +02:00
build.zig Initial commit 2025-07-17 06:20:42 +02:00
build.zig.zon Initial commit 2025-07-17 06:20:42 +02:00
LICENSE Initial commit 2025-07-17 06:20:42 +02:00
LICENSE-BZIP2 Initial commit 2025-07-17 06:20:42 +02:00
README.md Initial commit 2025-07-17 06:20:42 +02:00

CI

bzip2

This is bzip2, 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/bzip2.git#1.0.8

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

const bzip_dependency = b.dependency("bzip", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("bz"));