We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9447097 commit f1a0cd4Copy full SHA for f1a0cd4
build.zig
@@ -1,16 +1,16 @@
1
const std = @import("std");
2
3
pub fn build(b: *std.Build) void {
4
- _ = b.addModule("zig-jwt", .{
5
- .root_source_file = b.path("./src/jwt.zig"),
+ const mod = b.addModule("zig-jwt", .{
+ .root_source_file = b.path("src/jwt.zig"),
6
});
7
8
// -Dtest-filter="..."
9
const test_filter = b.option([]const []const u8, "test-filter", "Filter for tests to run");
10
11
// zig build unit_test
12
const unit_tests = b.addTest(.{
13
+ .root_module = mod,
14
15
if (test_filter) |t| unit_tests.filters = t;
16
0 commit comments