fix: Update to zig 0.13.0

This commit is contained in:
Kalle Carlbark 2024-06-09 12:14:35 +02:00
parent 6e096802c6
commit 74536957b0
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
zig-out/*
zig-cache/*
.zig-cache/*

View file

@ -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,
});

View file

@ -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",
},
},
}