add build.zig.zon; update build.zig to zig 0.13
parent
390ffd6732
commit
fc2088fabb
12
build.zig
12
build.zig
|
@ -1,25 +1,23 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn build(b: *std.build.Builder) void {
|
||||
// Standard release options allow the person running `zig build` to select
|
||||
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
|
||||
pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const target = b.standardTargetOptions(.{});
|
||||
_ = b.addModule("jwt", .{
|
||||
.source_file = .{ .path = "jwt.zig" },
|
||||
.root_source_file = b.path("jwt.zig"),
|
||||
});
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
.name = "zig-jwt",
|
||||
.root_source_file = .{ .path = "jwt.zig" },
|
||||
.root_source_file = b.path("jwt.zig"),
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
});
|
||||
b.installArtifact(lib);
|
||||
|
||||
const main_tests = b.addTest(.{
|
||||
.root_source_file = .{ .path = "jwt.zig" },
|
||||
.root_source_file = b.path("jwt.zig"),
|
||||
});
|
||||
const run_main_tests = b.addRunArtifact(main_tests);
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
.{
|
||||
.name = "zig-jwt",
|
||||
.version = "0.0.1",
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
"build.zig.zon",
|
||||
"jwt.zig",
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue