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

allyourcodebase/libxml2

MIT

libxml2 ported to the zig build system

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

libxml2

This is libxml2, 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/libxml2.git

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

const libxml2_dependency = b.dependency("libxml2", .{
    .target = target,
    .optimize = optimize,
    .iconv = false, // This would link to `libiconv` otherwise
});
your_exe.linkLibrary(libxml2_dependency.artifact("libxml2"));
libxml2