diff --git a/.gitignore b/.gitignore index af60419..8073ae3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ zig-out/* -zig-cache/* +.zig-cache/* diff --git a/build.zig b/build.zig index cf69c34..b35660b 100644 --- a/build.zig +++ b/build.zig @@ -11,7 +11,7 @@ pub fn build(b: *std.Build) void { opt.addOption([]const u8, "version", "0.0.2"); const exe = b.addExecutable(.{ .name = "b64", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -27,7 +27,7 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); const 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 d9b61a5..3ba1ebb 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,10 +2,11 @@ .name = "b64", .version = "0.0.2", .paths = .{""}, + .minimum_zig_version = "0.13.0", .dependencies = .{ .clap = .{ .url = "https://github.com/Hejsil/zig-clap/archive/master/latest.tar.gz", - .hash = "122014e73fd712190e109950837b97f6143f02d7e2b6986e1db70b6f4aadb5ba6a0d", + .hash = "1220c900c70daf3e715fad6f266ec14b1d0f5e6c2d3f34b32142f60306cb9b5e5f05", }, }, }