Skip to content

Commit

Permalink
update to latest zig & adapt to new stdlib changes
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Aug 1, 2023
1 parent 151a011 commit 977fa41
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn build(b: *std.build.Builder) !void {
// we install the facil dependency, just to see what it's like
// zig build with the default (install) step will install it
facil_lib.installLibraryHeaders(facil_dep.artifact("facil.io"));
const facil_install_step = b.addInstallArtifact(facil_lib);
const facil_install_step = b.addInstallArtifact(facil_lib, .{});
b.getInstallStep().dependOn(&facil_install_step.step);

const all_step = b.step("all", "build all examples");
Expand Down Expand Up @@ -96,7 +96,7 @@ pub fn build(b: *std.build.Builder) !void {
example_run_step.dependOn(&example_run.step);

// install the artifact - depending on the "example"
const example_build_step = b.addInstallArtifact(example);
const example_build_step = b.addInstallArtifact(example, .{});
example_step.dependOn(&example_build_step.step);
all_step.dependOn(&example_build_step.step);
}
Expand Down Expand Up @@ -125,7 +125,7 @@ pub fn build(b: *std.build.Builder) !void {
auth_tests.addModule("zap", zap_module);

const run_auth_tests = b.addRunArtifact(auth_tests);
const install_auth_tests = b.addInstallArtifact(auth_tests);
const install_auth_tests = b.addInstallArtifact(auth_tests, .{});

// http paramters (qyery, body) tests
const httpparams_tests = b.addTest(.{
Expand All @@ -142,7 +142,7 @@ pub fn build(b: *std.build.Builder) !void {
// dependencies have changed.
// So, for now, we just force the exe to be built, so in order that
// we can call it again when needed.
const install_httpparams_tests = b.addInstallArtifact(httpparams_tests);
const install_httpparams_tests = b.addInstallArtifact(httpparams_tests, .{});

// http paramters (qyery, body) tests
const sendfile_tests = b.addTest(.{
Expand All @@ -155,7 +155,7 @@ pub fn build(b: *std.build.Builder) !void {
sendfile_tests.linkLibrary(facil_dep.artifact("facil.io"));
sendfile_tests.addModule("zap", zap_module);
const run_sendfile_tests = b.addRunArtifact(sendfile_tests);
const install_sendfile_tests = b.addInstallArtifact(sendfile_tests);
const install_sendfile_tests = b.addInstallArtifact(sendfile_tests, .{});

// test commands
const run_auth_test_step = b.step("test-authentication", "Run auth unit tests [REMOVE zig-cache!]");
Expand Down Expand Up @@ -188,7 +188,7 @@ pub fn build(b: *std.build.Builder) !void {
.optimize = optimize,
});
var pkghash_step = b.step("pkghash", "Build pkghash");
const pkghash_build_step = b.addInstallArtifact(pkghash_exe);
const pkghash_build_step = b.addInstallArtifact(pkghash_exe, .{});
pkghash_step.dependOn(&pkghash_build_step.step);
all_step.dependOn(&pkghash_build_step.step);

Expand All @@ -202,7 +202,7 @@ pub fn build(b: *std.build.Builder) !void {
.optimize = optimize,
});
var announceybot_step = b.step("announceybot", "Build announceybot");
const announceybot_build_step = b.addInstallArtifact(announceybot_exe);
const announceybot_build_step = b.addInstallArtifact(announceybot_exe, .{});
announceybot_step.dependOn(&announceybot_build_step.step);
all_step.dependOn(&announceybot_build_step.step);
}
6 changes: 3 additions & 3 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.{
.name = "zap",
.version = "0.1.9-pre",
.version = "0.1.10-pre",

.dependencies = .{
.@"facil.io" = .{
.url = "https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.11.tar.gz",
.hash = "1220aeeb78554b41e8b4a61eca7f29031cca7cb31d935c5583db17c0bb1439b87334",
.url = "https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.12.tar.gz",
.hash = "12200301960bbde64052db068cf31a64091ce1f671898513d9b8d9e2be5b0e4b13a3",
}
}
}
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 977fa41

Please sign in to comment.