| author | |
| committer | |
| log | df213099ceef34546097bdb715fb45047e50e91f |
| tree | 7d8f55fe6b7445ee3266eca6e39e399a17d60a2d |
| parent | 27873c7ccc0aed3bd3694fe2250d2cf2fd8101e5 |
| signature |
3 files changed, 7 insertions(+), 7 deletions(-)
build.zig+6-4| ... | @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); | ... | @@ -3,13 +3,15 @@ const deps = @import("./deps.zig"); |
| 3 | 3 | ||
| 4 | pub fn build(b: *std.Build) void { | 4 | pub fn build(b: *std.Build) void { |
| 5 | const target = b.standardTargetOptions(.{}); | 5 | const target = b.standardTargetOptions(.{}); |
| 6 | const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; | 6 | const mode = b.option(std.builtin.OptimizeMode, "mode", "") orelse .Debug; |
| 7 | const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false; | 7 | const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false; |
| 8 | 8 | ||
| 9 | const tests = b.addTest(.{ | 9 | const tests = b.addTest(.{ |
| 10 | .root_source_file = b.path("test.zig"), | 10 | .root_module = b.createModule(.{ |
| 11 | .target = target, | 11 | .root_source_file = b.path("test.zig"), |
| 12 | .optimize = mode, | 12 | .target = target, |
| 13 | .optimize = mode, | ||
| 14 | }), | ||
| 13 | }); | 15 | }); |
| 14 | deps.addAllTo(tests); | 16 | deps.addAllTo(tests); |
| 15 | tests.use_llvm = !disable_llvm; | 17 | tests.use_llvm = !disable_llvm; |
licenses.txt+1-1| ... | @@ -2,13 +2,13 @@ MIT: | ... | @@ -2,13 +2,13 @@ MIT: |
| 2 | = https://spdx.org/licenses/MIT | 2 | = https://spdx.org/licenses/MIT |
| 3 | - This | 3 | - This |
| 4 | - git https://github.com/nektro/zig-extras | 4 | - git https://github.com/nektro/zig-extras |
| 5 | - git https://github.com/nektro/zig-htmlentities | ||
| 5 | - git https://github.com/nektro/zig-json | 6 | - git https://github.com/nektro/zig-json |
| 6 | - git https://github.com/nektro/zig-sys-darwin | 7 | - git https://github.com/nektro/zig-sys-darwin |
| 7 | - git https://github.com/nektro/zig-sys-linux | 8 | - git https://github.com/nektro/zig-sys-linux |
| 8 | - git https://github.com/nektro/zig-time | 9 | - git https://github.com/nektro/zig-time |
| 9 | - git https://github.com/nektro/zig-tracer | 10 | - git https://github.com/nektro/zig-tracer |
| 10 | - git https://github.com/nektro/zig-unicode-ucd | 11 | - git https://github.com/nektro/zig-unicode-ucd |
| 11 | - git https://github.com/kivikakk/htmlentities.zig | ||
| 12 | 12 | ||
| 13 | MPL-2.0: | 13 | MPL-2.0: |
| 14 | = https://spdx.org/licenses/MPL-2.0 | 14 | = https://spdx.org/licenses/MPL-2.0 |
oauth2.zig-2| ... | @@ -265,8 +265,6 @@ pub fn clientByProviderId(clients: []const Client, name: string) ?Client { | ... | @@ -265,8 +265,6 @@ pub fn clientByProviderId(clients: []const Client, name: string) ?Client { |
| 265 | return null; | 265 | return null; |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | pub const IsLoggedInFn = fn (*std.http.Server.Response) anyerror!bool; | ||
| 269 | |||
| 270 | pub fn Handlers(comptime T: type) type { | 268 | pub fn Handlers(comptime T: type) type { |
| 271 | comptime std.debug.assert(@hasDecl(T, "isLoggedIn")); | 269 | comptime std.debug.assert(@hasDecl(T, "isLoggedIn")); |
| 272 | comptime std.debug.assert(@hasDecl(T, "doneUrl")); | 270 | comptime std.debug.assert(@hasDecl(T, "doneUrl")); |