Zigistry
  • Packages
  • Programs
  • Statistics
  • Apps
  • API
  • About
  • Help
  • Star
© 2024Rohan Vashisht
  • About
  • Help
  • GitHub
misshodlibexpat

allyourcodebase/libexpat

MIT

libexpat ported to the zig build system

0000
2
zig,zig-package
 
build.zig.zonbuild.zig
View package on GitHub

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

You can then import expat in your build.zig with:

const expat_dependency = b.dependency("expat", .{
    .target = target,
    .optimize = optimize,
});
your_exe.linkLibrary(expat_dependency.artifact("expat"));
libexpat