https://github.com/allyourcodebase/libexpat
libexpat ported to the zig build system
https://github.com/allyourcodebase/libexpat
zig zig-package
Last synced: 26 days ago
JSON representation
libexpat ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/libexpat
- Owner: allyourcodebase
- License: mit
- Created: 2024-12-18T18:15:55.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-05-20T22:39:37.000Z (about 2 months ago)
- Last Synced: 2025-06-08T11:14:28.227Z (30 days ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/libexpat/actions)
# Expat
This is [Expat](https://github.com/libexpat/libexpat), packaged for [Zig](https://ziglang.org/).
## 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.7.1
```You can then import `expat` in your `build.zig` with:
```zig
const expat_dependency = b.dependency("expat", .{
.target = target,
.optimize = optimize,
});
your_exe.linkLibrary(expat_dependency.artifact("expat"));
```