diff options
| author | 2024-07-10 10:24:09 +0300 | |
|---|---|---|
| committer | 2024-07-10 10:24:09 +0300 | |
| commit | 4f35f40441b195749b88352c1b7e6487541b03d7 (patch) | |
| tree | b0e4612eaa18c4edee3c587ac5378d2b4b8928a8 /build.zig | |
| parent | Release 0.4.0 (diff) | |
| download | zup-4f35f40441b195749b88352c1b7e6487541b03d7.tar.gz zup-4f35f40441b195749b88352c1b7e6487541b03d7.tar.xz zup-4f35f40441b195749b88352c1b7e6487541b03d7.zip | |
Update for zig 0.13.0
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 10 | ||||
| -rw-r--r-- | build.zig.zon | 12 |
2 files changed, 14 insertions, 8 deletions
| @@ -20,7 +20,10 @@ pub fn build(b: *Build) void { | |||
| 20 | const exe = b.addExecutable(.{ | 20 | const exe = b.addExecutable(.{ |
| 21 | .name = "zup", | 21 | .name = "zup", |
| 22 | .version = version, | 22 | .version = version, |
| 23 | .root_source_file = .{ .path = "src/main.zig" }, | 23 | .root_source_file = .{ .src_path = .{ |
| 24 | .owner = b, | ||
| 25 | .sub_path = "src/main.zig", | ||
| 26 | } }, | ||
| 24 | .target = target, | 27 | .target = target, |
| 25 | .optimize = optimize, | 28 | .optimize = optimize, |
| 26 | }); | 29 | }); |
| @@ -40,7 +43,10 @@ pub fn build(b: *Build) void { | |||
| 40 | run_step.dependOn(&run_cmd.step); | 43 | run_step.dependOn(&run_cmd.step); |
| 41 | 44 | ||
| 42 | const exe_tests = b.addTest(.{ | 45 | const exe_tests = b.addTest(.{ |
| 43 | .root_source_file = .{ .path = "src/main.zig" }, | 46 | .root_source_file = .{ .src_path = .{ |
| 47 | .owner = b, | ||
| 48 | .sub_path = "src/main.zig", | ||
| 49 | } }, | ||
| 44 | .target = target, | 50 | .target = target, |
| 45 | .optimize = optimize, | 51 | .optimize = optimize, |
| 46 | }); | 52 | }); |
diff --git a/build.zig.zon b/build.zig.zon index aed6a59..2d7a69c 100644 --- a/build.zig.zon +++ b/build.zig.zon | |||
| @@ -5,16 +5,16 @@ | |||
| 5 | .paths = .{""}, | 5 | .paths = .{""}, |
| 6 | .dependencies = .{ | 6 | .dependencies = .{ |
| 7 | .clap = .{ | 7 | .clap = .{ |
| 8 | .url = "https://git.enes.lv/zig-clap/snapshot/zig-clap-0.8.0.tar.xz", | 8 | .url = "https://git.enes.lv/zig-clap/snapshot/zig-clap-0.9.1.tar.xz", |
| 9 | .hash = "1220949d4e88864579067b6d4cdad6476c6176f27e782782c2c39b7f2c4817a10efb", | 9 | .hash = "122062d301a203d003547b414237229b09a7980095061697349f8bef41be9c30266b", |
| 10 | }, | 10 | }, |
| 11 | .libarchive = .{ | 11 | .libarchive = .{ |
| 12 | .url = "https://git.enes.lv/zig-libarchive/snapshot/zig-libarchive-0.3.0.tar.xz", | 12 | .url = "https://git.enes.lv/zig-libarchive/snapshot/zig-libarchive-0.4.0.tar.xz", |
| 13 | .hash = "1220d8262d35559168d67d60797829a36958320556b277cd0e701a34eb00880461ab", | 13 | .hash = "1220b21cc99fca50b7fa495191a17abe440dc8229aa3bc5a638c4a0f2ffdceccbdda", |
| 14 | }, | 14 | }, |
| 15 | .xdg = .{ | 15 | .xdg = .{ |
| 16 | .url = "https://git.enes.lv/zig-xdg/snapshot/zig-xdg-0.3.0.tar.xz", | 16 | .url = "https://git.enes.lv/zig-xdg/snapshot/zig-xdg-0.4.0.tar.xz", |
| 17 | .hash = "1220e214475ea8ff31ac110f593be121663eefdca27d19508d0c96bc49f47c31756f", | 17 | .hash = "12206c1b6e163e79b83eb1e6cb1d575b256e603a0bbf9c2726e6f3235028eabbff41", |
| 18 | }, | 18 | }, |
| 19 | }, | 19 | }, |
| 20 | } | 20 | } |