mirror of
https://github.com/allyourcodebase/libzip.git
synced 2026-11-17 01:30:30 +00:00
libzip ported to the zig build system
- Zig 78.5%
- C 21.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| src | ||
| .gitattributes | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| LICENSE-LIBZIP | ||
| README.md | ||
libzip
This is libzip, 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/libzip.git#1.11.2
You can then import libzip in your build.zig with:
const bzip_dependency = b.dependency("libzip", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(bzip_dependency.artifact("zip"));
Notes
Crypto and LZMA are not supported right now.