From df213099ceef34546097bdb715fb45047e50e91f Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 1 Jun 2026 16:05:05 -0700 Subject: [PATCH] update to zig 0.15.2 --- build.zig | 10 ++++++---- licenses.txt | 2 +- oauth2.zig | 2 -- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.zig b/build.zig index 3271cf016af8a1023a18d9e377fc6e89dee60990..2cb1cff60b0d8d40a047f0b781fc3671eabcb173 100644 --- a/build.zig +++ b/build.zig @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; + const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug; const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false; const tests = b.addTest(.{ - .root_source_file = b.path("test.zig"), - .target = target, - .optimize = mode, + .root_module = b.createModule(.{ + .root_source_file = b.path("test.zig"), + .target = target, + .optimize = mode, + }), }); deps.addAllTo(tests); tests.use_llvm = !disable_llvm; diff --git a/licenses.txt b/licenses.txt index 796c7bf198f4a8e81b1549633a1dba2fc40a9699..5e4a7a8d1758ed94e1a76fa863dfdb08566e8ce1 100644 --- a/licenses.txt +++ b/licenses.txt @@ -2,13 +2,13 @@ MIT: = https://spdx.org/licenses/MIT - This - git https://github.com/nektro/zig-extras +- git https://github.com/nektro/zig-htmlentities - git https://github.com/nektro/zig-json - git https://github.com/nektro/zig-sys-darwin - git https://github.com/nektro/zig-sys-linux - git https://github.com/nektro/zig-time - git https://github.com/nektro/zig-tracer - git https://github.com/nektro/zig-unicode-ucd -- git https://github.com/kivikakk/htmlentities.zig MPL-2.0: = https://spdx.org/licenses/MPL-2.0 diff --git a/oauth2.zig b/oauth2.zig index 3f0787793ba96b6462eb640825d84e9b60ad21e2..d53e23bb76877e7aca413e78ffe687b0b25fb94e 100644 --- a/oauth2.zig +++ b/oauth2.zig @@ -265,8 +265,6 @@ pub fn clientByProviderId(clients: []const Client, name: string) ?Client { return null; } -pub const IsLoggedInFn = fn (*std.http.Server.Response) anyerror!bool; - pub fn Handlers(comptime T: type) type { comptime std.debug.assert(@hasDecl(T, "isLoggedIn")); comptime std.debug.assert(@hasDecl(T, "doneUrl")); -- 2.54.0