https://github.com/allyourcodebase/zstd
zstd ported to the zig build system
https://github.com/allyourcodebase/zstd
zig zig-package
Last synced: 6 months ago
JSON representation
zstd ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/zstd
- Owner: allyourcodebase
- License: mit
- Created: 2024-07-25T17:20:45.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-07T14:12:19.000Z (12 months ago)
- Last Synced: 2025-08-25T08:29:46.262Z (6 months ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 16.6 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/zstd/actions)
# zstd
This is [zstd](https://github.com/facebook/zstd), 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/zstd.git#1.5.7
```
You can then import `zstd` in your `build.zig` with:
```zig
const zstd_dependency = b.dependency("zstd", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(zstd_dependency.artifact("zstd"));
```