Release v0.2.4
Pre-release
Pre-release
ZAP Release v0.2.4
Updates
FIX tls.zig
In the heat of the action, I forgot to add tls.zig in 0.2.3. Ooops.
It's present in 0.2.4
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.2.4
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.4.tar.gz",
.hash = "1220b22285fd80b8e027bf877a1f66833934b8639cc4fc38c84fbbbcee5b2d6f6a8f",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.2.4
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.4.tar.gz",
.hash = "1220b22285fd80b8e027bf877a1f66833934b8639cc4fc38c84fbbbcee5b2d6f6a8f",
}
}
}
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"));