Closed
Description
I've been trying to create a project using Zap and building it, but Zap throws an error making my project unable to compile.
I've tried many things to get it working and verified my build files, but the error persists and comes out of Zap's build file it seems.
and comes from here within Zap (build.zig
)
My build.zig
(shortened)
const std = @import("std");
pub fn build(b: *std.Build) void {
// ...
const exe = b.addExecutable(.{
.name = "api",
.root_source_file = .{ .path = "src/main.zig" },
.target = target,
.optimize = optimize,
});
// LOADING ZAP
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
.openssl = false, // set to true to enable TLS support
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
b.installArtifact(exe);
// ...
}
My build.zig.zon
file (shortened)
.{
.dependencies = .{
// zap v0.5.0
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/v0.5.0.tar.gz",
.hash = "1220aabff84ad1d800f5657d6a49cb90dab3799765811ada27faf527be45dd315a4d",
},
},
}
Version of Zig 0.11.0
Version of Zap 0.5.0
Version of Windows Windows 11 - Build 23620.1000 - 22H2
Metadata
Metadata
Assignees
Labels
No labels