https://github.com/allyourcodebase/lz4
lz4 ported to the zig build system
https://github.com/allyourcodebase/lz4
zig zig-package
Last synced: 8 months ago
JSON representation
lz4 ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/lz4
- Owner: allyourcodebase
- License: mit
- Created: 2024-08-15T11:54:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-03T17:34:40.000Z (10 months ago)
- Last Synced: 2025-07-07T21:55:09.743Z (8 months ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 11.7 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/lz4/actions)
# lz4
This is [lz4](https://github.com/lz4/lz4), packaged for [Zig](https://ziglang.org/).
## 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-5
```
You can then import `lz4` in your `build.zig` with:
```zig
const lz4_dependency = b.dependency("lz4", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(lz4_dependency.artifact("lz4"));
```