Zig bindings for Ultralight, an embedded high-performance HTML renderer.
Built and tested with Zig version 0.14.0
.
First, download the Ultralight v1.4.0 SDK for your platform.
Then, add zig-ultralight to build.zig.zon
:
.{
.dependencies = .{
.ultralight = .{
.url = "https://github.com/nDimensional/zig-ultralight/archive/$COMMIT.tar.gz",
// .hash = "...",
},
},
}
Then add the ul
import to your root modules in build.zig
, passing the path to the Ultralight SDK as a build argument:
const ultralight = b.dependency("ultralight", .{
.SDK = @as([]const u8, "path/to/sdk/folder"),
});
app.root_module.addImport("ul", ultralight.module("ul"));
To run the example example, pass the SDK path in usind -DSDK
from the CLI:
$ zig build run -DSDK=path/to/sdk/folder