diff --git a/.gitignore b/.gitignore index cbcae4c..540d652 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ zig-out/ -zig-cache/ +.zig-cache/ *.core static/ .jetzig diff --git a/build.zig b/build.zig index d80454e..36adc79 100644 --- a/build.zig +++ b/build.zig @@ -7,14 +7,12 @@ pub fn build(b: *std.Build) !void { const exe = b.addExecutable(.{ .name = "zuletzt", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); // Example dependency: - const iguanas_dep = b.dependency("iguanas", .{ .optimize = optimize, .target = target }); - exe.root_module.addImport("iguanas", iguanas_dep.module("iguanas")); // All dependencies **must** be added to imports above this line. @@ -31,7 +29,7 @@ pub fn build(b: *std.Build) !void { run_step.dependOn(&run_cmd.step); const lib_unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -39,7 +37,7 @@ pub fn build(b: *std.Build) !void { const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); const exe_unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/build.zig.zon b/build.zig.zon index e14a6d7..c4ddd34 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -16,8 +16,8 @@ // internet connectivity. .dependencies = .{ .jetzig = .{ - .url = "https://github.com/jetzig-framework/jetzig/archive/31e8ae36e1d7f68166114eefb867c23df352d537.tar.gz", - .hash = "1220d368ce21549ccd721d5f303888986fff5714835b1f266a62e329f85eabec8f19", + .url = "https://github.com/jetzig-framework/jetzig/archive/dda433bb73000614482af10a277d47dc9d89600c.tar.gz", + .hash = "12202ce84b803a8b300c91d98afbc7c326298b55a23bf05cf603182e934b621008ec", }, .iguanas = .{ .url = "https://github.com/jetzig-framework/iguanas/archive/89c2abf29de0bc31054a9a6feac5a6a83bab0459.tar.gz",