mirror of
https://github.com/allyourcodebase/libexpat.git
synced 2026-11-17 01:20:36 +00:00
libexpat ported to the zig build system
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
Expat
This is Expat, 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/libexpat.git#2.9.0
You can then import expat in your build.zig with:
const expat_dependency = b.dependency("expat", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(expat_dependency.artifact("expat"));