Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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