libexpat ported to the zig build system
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-13 02:41:29 +02:00
.github/workflows CI: cross compile to BSDs 2026-10-13 02:37:11 +02:00
.gitattributes initial commit 2024-12-18 19:17:37 +01:00
.gitignore update to latest zig 2026-06-06 17:13:02 +03:30
build.zig update upstream to 2.9.0 2026-10-13 02:36:53 +02:00
build.zig.zon update upstream to 2.9.0 2026-10-13 02:36:53 +02:00
LICENSE initial commit 2024-12-18 19:17:37 +01:00
README.md release 2.9.0 2026-10-13 02:41:29 +02:00

CI

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"));