Skip to content

Release v0.1.13-pre

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 13 Sep 00:13

ZAP Release v0.1.13-pre

Updates

Late Night Bugfix Release

The multi-part multi-file upload had a serious bug, and zap didn't check for potentially invalid array items correctly.

All that is fixed with this release.

Using it

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

        // zap v0.1.13-pre
        .zap = .{
            .url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.13-pre.tar.gz",
            .hash = "12208cbd661a48011463659e664335ecc0ea2b121bb1ec0d4406e2326edafa864db8",
        }

Here is a complete build.zig.zon example:

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

    .dependencies = .{
        // zap v0.1.13-pre
        .zap = .{
            .url = "https://github.com/zigzap/zap/archive/refs/tags/v0.1.13-pre.tar.gz",
            .hash = "12208cbd661a48011463659e664335ecc0ea2b121bb1ec0d4406e2326edafa864db8",
        }
    }
}

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