Release v0.2.0
Pre-release
Pre-release
ZAP Release v0.2.0
Updates
ZAP just swallowed its dependency to our fork of facil.io
This will make hacking on facil.io (e.g. to support TLS) and future refactorings much easier.
Since ZAP is the only project that uses our facil.io fork, it made sense to ultimately integrate it.
No new features in this release!
We also got rid of the -pre
version postfix. Zap has been running fine in production for > 6 months now without any hiccups π.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap v0.2.0
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.0.tar.gz",
.hash = "1220614483f9638f29c6c1bf07c03e945ea28a1055b82f500d3628f4134dc582b6ed",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap v0.2.0
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.2.0.tar.gz",
.hash = "1220614483f9638f29c6c1bf07c03e945ea28a1055b82f500d3628f4134dc582b6ed",
}
}
}
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"));