lz4
lz4

allyourcodebase/lz4

MIT

lz4 ported to the zig build system

2200
2
build.zig.zon build.zig 
View on Github  
Updated: 9:43:45 AM Sun Aug 25 2024Size: 2KBCreated: 11:54:47 AM Thu Aug 15 2024
Dependencies:
lz4
zig fetch --save git+https://github.com/allyourcodebase/lz4

CI

lz4

This is lz4, 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/lz4.git#1.10.0-1

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

const lz4_dependency = b.dependency("lz4", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(lz4_dependency.artifact("lz4"));