Minilzo packaged for Zig
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Caleb J. Gardner 8ad04b7bab Updated URL
2026-10-18 21:10:26 -05:00
.gitignore Initial commit 2026-03-21 00:54:24 -05:00
build.zig Updated to zig 0.17.0 2026-10-08 23:55:43 -05:00
build.zig.zon Updated to zig 0.17.0 2026-10-08 23:55:43 -05:00
LICENSE Initial commit 2026-03-21 00:54:24 -05:00
README.md Updated URL 2026-10-18 21:10:26 -05:00

minilzo

minilzo packaged for zig.

How to use it

First, update your build.zig.zon:

zig fetch --save git+https://git.darstorm.tech/BelacDarkstorm/zig-minilzo.git

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

const minilzo_dep = b.dependency("minilzo", .{
    .target = target,
    .optimize = optimize,
});
your_compilation.linkLibrary(minilzo_dep.artifact("minilzo"));

This will provide minilzo as a static library to your_compilation. To mirror how lzo is often packaged, header files are provided inside of lzo/ so to include the header file use @cInclude("lzo/minilzo.h").