Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allyourcodebase/libexpat
libexpat ported to the zig build system
https://github.com/allyourcodebase/libexpat
zig zig-package
Last synced: about 18 hours 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 (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-12-18T18:27:26.000Z (about 2 months ago)
- Last Synced: 2025-02-12T08:31:48.646Z (3 days ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CI](https://github.com/allyourcodebase/libexpat/actions/workflows/ci.yaml/badge.svg)](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
```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"));
```