Release v0.2.1
Pre-release
Pre-release
ZAP Release v0.2.1
Updates
Build-fix Release
The new facil.io build wasn't installing the lib, so builds broke.
This has been fixed. (Fixes #56)
Sorry for the inconvenience.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.2.1
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.1.tar.gz",
.hash = "12202c27678a615f45e786aa74ce00b97a9f104f0ac4624ebc7487e66427c705cb40",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.2.1
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.1.tar.gz",
.hash = "12202c27678a615f45e786aa74ce00b97a9f104f0ac4624ebc7487e66427c705cb40",
}
}
}
Then, in your build.zig
's build
function, add the following before exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));