Skip to content

release-0.0.21

Pre-release
Pre-release
Compare
Choose a tag to compare
@renerocksai renerocksai released this 19 May 00:52
· 435 commits to master since this release

ZAP Release release-0.0.21

Updates

Middleware support! Check out the readme for more info and pointers.

Using it

To use in your own projects, put this dependency into your build.zig.zon:

        // zap release-0.0.21
        .zap = .{
            .url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.21.tar.gz",
            .hash = "12202384c46e9e2059fb5082c61c42aae2421edff233cb8cecef682114cbbabf7197",
        }

Here is a complete build.zig.zon example:

.{
    .name = "My example project",
    .version = "0.0.1",

    .dependencies = .{
        // zap release-0.0.21
        .zap = .{
            .url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.21.tar.gz",
            .hash = "12202384c46e9e2059fb5082c61c42aae2421edff233cb8cecef682114cbbabf7197",
        }
    }
}

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