authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-22 12:47:15 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-05-22 12:47:15 -07:00
log829e4698f63a5c75bb4e826745411580d011b906
tree98fdfb4c7b4c3291365d9e21e314899f96432160
parente7288924c44ce5200607309de303e442a6248d6a

update to Zig 0.14.0


27 files changed, 123 insertions(+), 110 deletions(-)

.github/workflows/nightly.yml+1-1
...@@ -27,7 +27,7 @@ jobs:...@@ -27,7 +27,7 @@ jobs:
27 uses: mlugg/setup-zig@v127 uses: mlugg/setup-zig@v1
28 with:28 with:
29 mirror: "http://mirrors.nektro.net/s3cgi"29 mirror: "http://mirrors.nektro.net/s3cgi"
30 version: "0.13.0"30 version: "0.14.0"
3131
32 - run: zig version32 - run: zig version
33 - run: zig env33 - run: zig env
.github/workflows/push.yml+1-1
...@@ -20,7 +20,7 @@ jobs:...@@ -20,7 +20,7 @@ jobs:
20 uses: mlugg/setup-zig@v120 uses: mlugg/setup-zig@v1
21 with:21 with:
22 mirror: "http://mirrors.nektro.net/s3cgi"22 mirror: "http://mirrors.nektro.net/s3cgi"
23 version: "0.13.0"23 version: "0.14.0"
2424
25 - run: zig version25 - run: zig version
26 - run: zig env26 - run: zig env
README.md+11-1
...@@ -1,25 +1,32 @@...@@ -1,25 +1,32 @@
1# zigmod1# zigmod
2
2![loc](https://sloc.xyz/github/nektro/zigmod)3![loc](https://sloc.xyz/github/nektro/zigmod)
3[![license](https://img.shields.io/github/license/nektro/zigmod.svg)](https://github.com/nektro/zigmod/blob/master/LICENSE)4[![license](https://img.shields.io/github/license/nektro/zigmod.svg)](https://github.com/nektro/zigmod/blob/master/LICENSE)
4[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)5[![discord](https://img.shields.io/discord/551971034593755159.svg?logo=discord)](https://discord.gg/P6Y4zQC)
5[![release](https://img.shields.io/github/v/release/nektro/zigmod)](https://github.com/nektro/zigmod/releases/latest)6[![release](https://img.shields.io/github/v/release/nektro/zigmod)](https://github.com/nektro/zigmod/releases/latest)
6[![downloads](https://img.shields.io/github/downloads/nektro/zigmod/total.svg)](https://github.com/nektro/zigmod/releases)7[![downloads](https://img.shields.io/github/downloads/nektro/zigmod/total.svg)](https://github.com/nektro/zigmod/releases)
8[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
9[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
710
8A package manager for the Zig programming language.11A package manager for the Zig programming language.
912
10## Zig13## Zig
14
11- https://ziglang.org/15- https://ziglang.org/
12- https://github.com/ziglang/zig16- https://github.com/ziglang/zig
13- https://github.com/ziglang/zig/wiki/Community17- https://github.com/ziglang/zig/wiki/Community
1418
15## Download19## Download
20
16- https://github.com/nektro/zigmod/releases21- https://github.com/nektro/zigmod/releases
1722
18## Built With23## Built With
19- Zig `0.13.0`24
25- Zig `0.14.0`
20- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)26- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)
2127
22### Build from Source28### Build from Source
29
23```30```
24$ git clone https://github.com/nektro/zigmod31$ git clone https://github.com/nektro/zigmod
25$ cd zigmod32$ cd zigmod
...@@ -27,6 +34,7 @@ $ zig build -j1...@@ -27,6 +34,7 @@ $ zig build -j1
27```34```
2835
29## Usage36## Usage
37
30Check out our [docs](docs/) or the website: https://nektro.github.io/zigmod/.38Check out our [docs](docs/) or the website: https://nektro.github.io/zigmod/.
3139
32There is now also a tutorial-style getting started guide that goes over various use cases that Zigmod provides and caters to. It is [available here](docs/tutorial.md).40There is now also a tutorial-style getting started guide that goes over various use cases that Zigmod provides and caters to. It is [available here](docs/tutorial.md).
...@@ -34,8 +42,10 @@ There is now also a tutorial-style getting started guide that goes over various...@@ -34,8 +42,10 @@ There is now also a tutorial-style getting started guide that goes over various
34A package index for Zigmod packages is also available at https://aquila.red/.42A package index for Zigmod packages is also available at https://aquila.red/.
3543
36## Contact44## Contact
45
37- hello@nektro.net46- hello@nektro.net
38- https://twitter.com/nektro47- https://twitter.com/nektro
3948
40## License49## License
50
41MIT51MIT
build.zig+5-2
...@@ -4,6 +4,8 @@ const builtin = @import("builtin");...@@ -4,6 +4,8 @@ const builtin = @import("builtin");
4const deps = @import("./deps.zig");4const deps = @import("./deps.zig");
55
6pub fn build(b: *std.Build) void {6pub fn build(b: *std.Build) void {
7 b.reference_trace = 256;
8
7 const target = b.standardTargetOptions(.{});9 const target = b.standardTargetOptions(.{});
8 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;10 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
9 const use_full_name = b.option(bool, "use-full-name", "") orelse false;11 const use_full_name = b.option(bool, "use-full-name", "") orelse false;
...@@ -18,6 +20,7 @@ pub fn build(b: *std.Build) void {...@@ -18,6 +20,7 @@ pub fn build(b: *std.Build) void {
18 const tag = b.option(string, "tag", "") orelse "dev";20 const tag = b.option(string, "tag", "") orelse "dev";
19 const strip = b.option(bool, "strip", "Build without debug info.") orelse false;21 const strip = b.option(bool, "strip", "Build without debug info.") orelse false;
20 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;22 const disable_llvm = b.option(bool, "disable_llvm", "use the non-llvm zig codegen") orelse false;
23 _ = &disable_llvm; // macos can't mix the flags rn because it needs llvm but also can't use lld
2124
22 const exe_options = b.addOptions();25 const exe_options = b.addOptions();
23 exe.root_module.addImport("build_options", exe_options.createModule());26 exe.root_module.addImport("build_options", exe_options.createModule());
...@@ -25,8 +28,8 @@ pub fn build(b: *std.Build) void {...@@ -25,8 +28,8 @@ pub fn build(b: *std.Build) void {
2528
26 deps.addAllTo(exe);29 deps.addAllTo(exe);
27 exe.root_module.strip = strip;30 exe.root_module.strip = strip;
28 exe.use_llvm = !disable_llvm;31 // exe.use_llvm = !disable_llvm;
29 exe.use_lld = !disable_llvm;32 // exe.use_lld = !disable_llvm;
30 b.installArtifact(exe);33 b.installArtifact(exe);
3134
32 const run_cmd = b.addRunArtifact(exe);35 const run_cmd = b.addRunArtifact(exe);
build_all_zig.sh-2
...@@ -3,8 +3,6 @@...@@ -3,8 +3,6 @@
3set -e3set -e
44
5zig build5zig build
6zigmod license > licenses.txt
7zigmod sum
86
9targets="7targets="
10x86_64-linux-musl8x86_64-linux-musl
deps.zig+61-59
...@@ -26,7 +26,7 @@ pub const GitExactStep = struct {...@@ -26,7 +26,7 @@ pub const GitExactStep = struct {
26 var urlpath = url;26 var urlpath = url;
27 urlpath = trimPrefix(u8, urlpath, "https://");27 urlpath = trimPrefix(u8, urlpath, "https://");
28 urlpath = trimPrefix(u8, urlpath, "git://");28 urlpath = trimPrefix(u8, urlpath, "git://");
29 const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.cache_root.path.?, urlpath, commit });29 const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.graph.global_cache_root.path.?, urlpath, commit });
30 flip(std.fs.cwd().access(repopath, .{})) catch return result;30 flip(std.fs.cwd().access(repopath, .{})) catch return result;
3131
32 var clonestep = std.Build.Step.Run.create(b, "clone");32 var clonestep = std.Build.Step.Run.create(b, "clone");
...@@ -40,9 +40,9 @@ pub const GitExactStep = struct {...@@ -40,9 +40,9 @@ pub const GitExactStep = struct {
40 return result;40 return result;
41 }41 }
4242
43 fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void {43 fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void {
44 _ = step;44 _ = step;
45 _ = prog_node;45 _ = options;
46 }46 }
47};47};
4848
...@@ -54,25 +54,25 @@ pub fn fetch(exe: *std.Build.Step.Compile) *std.Build.Step {...@@ -54,25 +54,25 @@ pub fn fetch(exe: *std.Build.Step.Compile) *std.Build.Step {
54 const root = if (@field(package_data, decl.name).store) |_| b.cache_root.path.? else ".";54 const root = if (@field(package_data, decl.name).store) |_| b.cache_root.path.? else ".";
55 if (path.* != null) path.* = b.fmt("{s}/zigmod/deps{s}", .{ root, path.*.? });55 if (path.* != null) path.* = b.fmt("{s}/zigmod/deps{s}", .{ root, path.*.? });
56 }56 }
57 step.dependOn(&GitExactStep.create(b, "https://github.com/marlersoft/zigwin32", "407a4c7b869ee3d10db520fdfae8b9faf9b2adb5").step);57 step.dependOn(&GitExactStep.create(b, "https://github.com/marlersoft/zigwin32", "d21b419d808215e1f82605fdaddc49750bfa3bca").step);
58 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/arqv-ini", "4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a").step);58 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/arqv-ini", "f1a72055884bd5bc0ffb93ba706c9212139d61b9").step);
59 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/iguanaTLS", "c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e").step);59 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/iguanaTLS", "b0e810ba8508681935ea7a5af857cc197dcdd279").step);
60 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zfetch", "c2883dd57698f223b2cfdccfc7ea357a12e5f741").step);60 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zfetch", "ec3c02114dec5deff3310b590e69ce0aeb67b95b").step);
61 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-ansi", "b0d7878680fff57fd5ed9e7e4d2694acc0b81255").step);61 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-ansi", "18c6c24d692df31a17f78299c4a539c935d1feb1").step);
62 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-detect-license", "3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a").step);62 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-detect-license", "9b85f69e9adc28ec70a217c07b86046e331d3485").step);
63 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-extras", "d4f8a6437cb5068072e4df338af77dde15ad3625").step);63 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-extras", "5c4543acadb6c24c05d68f79e4c9d2093457a629").step);
64 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-git", "11805225d52bc28c2edc31fd7a855bd1aa16bc67").step);64 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-git", "b206fa9978ef2cc06bab4d307c7ed07f1f3b88af").step);
65 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-inquirer", "d6005ee08b2f5ce3c4554fa7f91e733f58b1a434").step);65 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-inquirer", "3bee7b28a37f3d0898119ef095687467fa907d4b").step);
66 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-intrusive-parser", "75a9745d9100b17a9443e6a0051cb140ffbcd0b1").step);66 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-intrusive-parser", "eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b").step);
67 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-json", "03b5392e53513a0f90aa5c10219c7caee6383997").step);67 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-json", "92dd6f67bbb52f060d5ac20719142b0211854290").step);
68 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-leven", "1c0e475b056ccc6a343187702ee4f3dc415e07cb").step);68 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-leven", "abcde0e877df670f96671bdca5b81b0e809df0d4").step);
69 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses", "d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76").step);69 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses", "86fc3f6cb4dcc2847832524a3f80d520c7a6577c").step);
70 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses-text", "f1830fbbd78a31d54d8469a0243cb904e7295e10").step);70 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-licenses-text", "a4a66621b3cccdf05e62e0152cf2cd43e9072e97").step);
71 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-time", "b9a93152af3ba73e5f681f73a67f0d676e2ad433").step);71 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-time", "25165db8e626434ab6eae2cff64ba5e72e4fa062").step);
72 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-tracer", "662774eedca41771f9ebd1ab45cfdc8e4319d4b4").step);72 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-tracer", "cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b").step);
73 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-yaml", "4489a2ed0b3f90e962527eaf9ac9c0203a99094a").step);73 step.dependOn(&GitExactStep.create(b, "https://github.com/nektro/zig-yaml", "10e8df67c534e186d851ed48e8895374d9a454e9").step);
74 step.dependOn(&GitExactStep.create(b, "https://github.com/truemedian/hzzp", "ab212bd208f0eb54d85861679677c5e3dc9bb543").step);74 step.dependOn(&GitExactStep.create(b, "https://github.com/truemedian/hzzp", "ab212bd208f0eb54d85861679677c5e3dc9bb543").step);
75 step.dependOn(&GitExactStep.create(b, "https://github.com/ziglibs/known-folders", "1cceeb70e77dec941a4178160ff6c8d05a74de6f").step);75 step.dependOn(&GitExactStep.create(b, "https://github.com/ziglibs/known-folders", "aa24df42183ad415d10bc0a33e6238c437fc0f59").step);
76 step.dependOn(&GitExactStep.create(b, "https://github.com/yaml/libyaml", "2c891fc7a770e8ba2fec34fc6b545c672beb37e6").step);76 step.dependOn(&GitExactStep.create(b, "https://github.com/yaml/libyaml", "2c891fc7a770e8ba2fec34fc6b545c672beb37e6").step);
77 return step;77 return step;
78}78}
...@@ -97,6 +97,8 @@ pub fn addAllTo(exe: *std.Build.Step.Compile) void {...@@ -97,6 +97,8 @@ pub fn addAllTo(exe: *std.Build.Step.Compile) void {
97 const module = pkg.module(exe, fetch_step);97 const module = pkg.module(exe, fetch_step);
98 exe.root_module.addImport(pkg.name, module);98 exe.root_module.addImport(pkg.name, module);
99 }99 }
100 // clear module memo cache so addAllTo can be called more than once in the same build.zig
101 inline for (comptime std.meta.declarations(package_data)) |decl| @field(package_data, decl.name).module_memo = null;
100}102}
101103
102var link_lib_c = false;104var link_lib_c = false;
...@@ -121,7 +123,7 @@ pub const Package = struct {...@@ -121,7 +123,7 @@ pub const Package = struct {
121 const result = b.createModule(.{});123 const result = b.createModule(.{});
122 const dummy_library = b.addStaticLibrary(.{124 const dummy_library = b.addStaticLibrary(.{
123 .name = "dummy",125 .name = "dummy",
124 .target = exe.root_module.resolved_target orelse b.host,126 .target = exe.root_module.resolved_target orelse b.graph.host,
125 .optimize = exe.root_module.optimize.?,127 .optimize = exe.root_module.optimize.?,
126 });128 });
127 dummy_library.step.dependOn(fetch_step);129 dummy_library.step.dependOn(fetch_step);
...@@ -168,97 +170,97 @@ pub const Package = struct {...@@ -168,97 +170,97 @@ pub const Package = struct {
168};170};
169171
170fn checkMinZig(current: std.SemanticVersion, exe: *std.Build.Step.Compile) void {172fn checkMinZig(current: std.SemanticVersion, exe: *std.Build.Step.Compile) void {
171 const min = std.SemanticVersion.parse("0.13.0") catch return;173 const min = std.SemanticVersion.parse("0.14.0") catch return;
172 if (current.order(min).compare(.lt)) @panic(exe.step.owner.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{current, min}));174 if (current.order(min).compare(.lt)) @panic(exe.step.owner.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{current, min}));
173}175}
174176
175pub const package_data = struct {177pub const package_data = struct {
176 pub var _o6ogpor87xc2 = Package{178 pub var _o6ogpor87xc2 = Package{
177 .store = "/git/github.com/marlersoft/zigwin32/407a4c7b869ee3d10db520fdfae8b9faf9b2adb5",179 .store = "/git/github.com/marlersoft/zigwin32/d21b419d808215e1f82605fdaddc49750bfa3bca",
178 .name = "win32",180 .name = "win32",
179 .entry = "/git/github.com/marlersoft/zigwin32/407a4c7b869ee3d10db520fdfae8b9faf9b2adb5/win32.zig",181 .entry = "/git/github.com/marlersoft/zigwin32/d21b419d808215e1f82605fdaddc49750bfa3bca/win32.zig",
180 };182 };
181 pub var _u7sysdckdymi = Package{183 pub var _u7sysdckdymi = Package{
182 .store = "/git/github.com/nektro/arqv-ini/4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a",184 .store = "/git/github.com/nektro/arqv-ini/f1a72055884bd5bc0ffb93ba706c9212139d61b9",
183 .name = "ini",185 .name = "ini",
184 .entry = "/git/github.com/nektro/arqv-ini/4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a/src/ini.zig",186 .entry = "/git/github.com/nektro/arqv-ini/f1a72055884bd5bc0ffb93ba706c9212139d61b9/src/ini.zig",
185 };187 };
186 pub var _csbnipaad8n7 = Package{188 pub var _csbnipaad8n7 = Package{
187 .store = "/git/github.com/nektro/iguanaTLS/c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e",189 .store = "/git/github.com/nektro/iguanaTLS/b0e810ba8508681935ea7a5af857cc197dcdd279",
188 .name = "iguanaTLS",190 .name = "iguanaTLS",
189 .entry = "/git/github.com/nektro/iguanaTLS/c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e/src/main.zig",191 .entry = "/git/github.com/nektro/iguanaTLS/b0e810ba8508681935ea7a5af857cc197dcdd279/src/main.zig",
190 };192 };
191 pub var _s84v9o48ucb0 = Package{193 pub var _s84v9o48ucb0 = Package{
192 .store = "/git/github.com/nektro/zig-ansi/b0d7878680fff57fd5ed9e7e4d2694acc0b81255",194 .store = "/git/github.com/nektro/zig-ansi/18c6c24d692df31a17f78299c4a539c935d1feb1",
193 .name = "ansi",195 .name = "ansi",
194 .entry = "/git/github.com/nektro/zig-ansi/b0d7878680fff57fd5ed9e7e4d2694acc0b81255/src/lib.zig",196 .entry = "/git/github.com/nektro/zig-ansi/18c6c24d692df31a17f78299c4a539c935d1feb1/src/lib.zig",
195 };197 };
196 pub var _f7dubzb7cyqe = Package{198 pub var _f7dubzb7cyqe = Package{
197 .store = "/git/github.com/nektro/zig-extras/d4f8a6437cb5068072e4df338af77dde15ad3625",199 .store = "/git/github.com/nektro/zig-extras/5c4543acadb6c24c05d68f79e4c9d2093457a629",
198 .name = "extras",200 .name = "extras",
199 .entry = "/git/github.com/nektro/zig-extras/d4f8a6437cb5068072e4df338af77dde15ad3625/src/lib.zig",201 .entry = "/git/github.com/nektro/zig-extras/5c4543acadb6c24c05d68f79e4c9d2093457a629/src/lib.zig",
200 };202 };
201 pub var _c1xirp1ota5p = Package{203 pub var _c1xirp1ota5p = Package{
202 .store = "/git/github.com/nektro/zig-inquirer/d6005ee08b2f5ce3c4554fa7f91e733f58b1a434",204 .store = "/git/github.com/nektro/zig-inquirer/3bee7b28a37f3d0898119ef095687467fa907d4b",
203 .name = "inquirer",205 .name = "inquirer",
204 .entry = "/git/github.com/nektro/zig-inquirer/d6005ee08b2f5ce3c4554fa7f91e733f58b1a434/src/lib.zig",206 .entry = "/git/github.com/nektro/zig-inquirer/3bee7b28a37f3d0898119ef095687467fa907d4b/src/lib.zig",
205 .deps = &[_]*Package{ &_s84v9o48ucb0 },207 .deps = &[_]*Package{ &_s84v9o48ucb0 },
206 };208 };
207 pub var _7l3oxw6nqqws = Package{209 pub var _7l3oxw6nqqws = Package{
208 .store = "/git/github.com/nektro/zig-intrusive-parser/75a9745d9100b17a9443e6a0051cb140ffbcd0b1",210 .store = "/git/github.com/nektro/zig-intrusive-parser/eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b",
209 .name = "intrusive-parser",211 .name = "intrusive-parser",
210 .entry = "/git/github.com/nektro/zig-intrusive-parser/75a9745d9100b17a9443e6a0051cb140ffbcd0b1/intrusive_parser.zig",212 .entry = "/git/github.com/nektro/zig-intrusive-parser/eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b/intrusive_parser.zig",
211 .deps = &[_]*Package{ &_f7dubzb7cyqe },213 .deps = &[_]*Package{ &_f7dubzb7cyqe },
212 };214 };
213 pub var _96h80ezrvj7i = Package{215 pub var _96h80ezrvj7i = Package{
214 .store = "/git/github.com/nektro/zig-leven/1c0e475b056ccc6a343187702ee4f3dc415e07cb",216 .store = "/git/github.com/nektro/zig-leven/abcde0e877df670f96671bdca5b81b0e809df0d4",
215 .name = "leven",217 .name = "leven",
216 .entry = "/git/github.com/nektro/zig-leven/1c0e475b056ccc6a343187702ee4f3dc415e07cb/src/lib.zig",218 .entry = "/git/github.com/nektro/zig-leven/abcde0e877df670f96671bdca5b81b0e809df0d4/src/lib.zig",
217 };219 };
218 pub var _0npcrzfdlrvk = Package{220 pub var _0npcrzfdlrvk = Package{
219 .store = "/git/github.com/nektro/zig-licenses/d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76",221 .store = "/git/github.com/nektro/zig-licenses/86fc3f6cb4dcc2847832524a3f80d520c7a6577c",
220 .name = "licenses",222 .name = "licenses",
221 .entry = "/git/github.com/nektro/zig-licenses/d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e76/src/lib.zig",223 .entry = "/git/github.com/nektro/zig-licenses/86fc3f6cb4dcc2847832524a3f80d520c7a6577c/src/lib.zig",
222 };224 };
223 pub var _pt88y5d80m25 = Package{225 pub var _pt88y5d80m25 = Package{
224 .store = "/git/github.com/nektro/zig-licenses-text/f1830fbbd78a31d54d8469a0243cb904e7295e10",226 .store = "/git/github.com/nektro/zig-licenses-text/a4a66621b3cccdf05e62e0152cf2cd43e9072e97",
225 .name = "licenses-text",227 .name = "licenses-text",
226 .entry = "/git/github.com/nektro/zig-licenses-text/f1830fbbd78a31d54d8469a0243cb904e7295e10/src/lib.zig",228 .entry = "/git/github.com/nektro/zig-licenses-text/a4a66621b3cccdf05e62e0152cf2cd43e9072e97/src/lib.zig",
227 };229 };
228 pub var _2ovav391ivak = Package{230 pub var _2ovav391ivak = Package{
229 .store = "/git/github.com/nektro/zig-detect-license/3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a",231 .store = "/git/github.com/nektro/zig-detect-license/9b85f69e9adc28ec70a217c07b86046e331d3485",
230 .name = "detect-license",232 .name = "detect-license",
231 .entry = "/git/github.com/nektro/zig-detect-license/3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a/src/lib.zig",233 .entry = "/git/github.com/nektro/zig-detect-license/9b85f69e9adc28ec70a217c07b86046e331d3485/src/lib.zig",
232 .deps = &[_]*Package{ &_pt88y5d80m25, &_96h80ezrvj7i },234 .deps = &[_]*Package{ &_pt88y5d80m25, &_96h80ezrvj7i },
233 };235 };
234 pub var _iecwp4b3bsfm = Package{236 pub var _iecwp4b3bsfm = Package{
235 .store = "/git/github.com/nektro/zig-time/b9a93152af3ba73e5f681f73a67f0d676e2ad433",237 .store = "/git/github.com/nektro/zig-time/25165db8e626434ab6eae2cff64ba5e72e4fa062",
236 .name = "time",238 .name = "time",
237 .entry = "/git/github.com/nektro/zig-time/b9a93152af3ba73e5f681f73a67f0d676e2ad433/time.zig",239 .entry = "/git/github.com/nektro/zig-time/25165db8e626434ab6eae2cff64ba5e72e4fa062/time.zig",
238 .deps = &[_]*Package{ &_f7dubzb7cyqe },240 .deps = &[_]*Package{ &_f7dubzb7cyqe },
239 };241 };
240 pub var _ede2wygpe1iy = Package{242 pub var _ede2wygpe1iy = Package{
241 .store = "/git/github.com/nektro/zig-tracer/662774eedca41771f9ebd1ab45cfdc8e4319d4b4",243 .store = "/git/github.com/nektro/zig-tracer/cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b",
242 .name = "tracer",244 .name = "tracer",
243 .entry = "/git/github.com/nektro/zig-tracer/662774eedca41771f9ebd1ab45cfdc8e4319d4b4/src/mod.zig",245 .entry = "/git/github.com/nektro/zig-tracer/cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b/src/mod.zig",
244 .deps = &[_]*Package{ &_f7dubzb7cyqe },246 .deps = &[_]*Package{ &_f7dubzb7cyqe },
245 };247 };
246 pub var _0k64oe2nuzvj = Package{248 pub var _0k64oe2nuzvj = Package{
247 .store = "/git/github.com/nektro/zig-git/11805225d52bc28c2edc31fd7a855bd1aa16bc67",249 .store = "/git/github.com/nektro/zig-git/b206fa9978ef2cc06bab4d307c7ed07f1f3b88af",
248 .name = "git",250 .name = "git",
249 .entry = "/git/github.com/nektro/zig-git/11805225d52bc28c2edc31fd7a855bd1aa16bc67/git.zig",251 .entry = "/git/github.com/nektro/zig-git/b206fa9978ef2cc06bab4d307c7ed07f1f3b88af/git.zig",
250 .deps = &[_]*Package{ &_iecwp4b3bsfm, &_f7dubzb7cyqe, &_ede2wygpe1iy },252 .deps = &[_]*Package{ &_iecwp4b3bsfm, &_f7dubzb7cyqe, &_ede2wygpe1iy },
251 };253 };
252 pub var _ocmr9rtohgcc = Package{254 pub var _ocmr9rtohgcc = Package{
253 .store = "/git/github.com/nektro/zig-json/03b5392e53513a0f90aa5c10219c7caee6383997",255 .store = "/git/github.com/nektro/zig-json/92dd6f67bbb52f060d5ac20719142b0211854290",
254 .name = "json",256 .name = "json",
255 .entry = "/git/github.com/nektro/zig-json/03b5392e53513a0f90aa5c10219c7caee6383997/json.zig",257 .entry = "/git/github.com/nektro/zig-json/92dd6f67bbb52f060d5ac20719142b0211854290/json.zig",
256 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_ede2wygpe1iy, &_7l3oxw6nqqws },258 .deps = &[_]*Package{ &_f7dubzb7cyqe, &_ede2wygpe1iy, &_7l3oxw6nqqws },
257 };259 };
258 pub var _g982zq6e8wsv = Package{260 pub var _g982zq6e8wsv = Package{
259 .store = "/git/github.com/nektro/zig-yaml/4489a2ed0b3f90e962527eaf9ac9c0203a99094a",261 .store = "/git/github.com/nektro/zig-yaml/10e8df67c534e186d851ed48e8895374d9a454e9",
260 .name = "yaml",262 .name = "yaml",
261 .entry = "/git/github.com/nektro/zig-yaml/4489a2ed0b3f90e962527eaf9ac9c0203a99094a/yaml.zig",263 .entry = "/git/github.com/nektro/zig-yaml/10e8df67c534e186d851ed48e8895374d9a454e9/yaml.zig",
262 .deps = &[_]*Package{ &_8mdbh0zuneb0, &_f7dubzb7cyqe },264 .deps = &[_]*Package{ &_8mdbh0zuneb0, &_f7dubzb7cyqe },
263 };265 };
264 pub var _9k24gimke1an = Package{266 pub var _9k24gimke1an = Package{
...@@ -267,15 +269,15 @@ pub const package_data = struct {...@@ -267,15 +269,15 @@ pub const package_data = struct {
267 .entry = "/git/github.com/truemedian/hzzp/ab212bd208f0eb54d85861679677c5e3dc9bb543/src/main.zig",269 .entry = "/git/github.com/truemedian/hzzp/ab212bd208f0eb54d85861679677c5e3dc9bb543/src/main.zig",
268 };270 };
269 pub var _ejw82j2ipa0e = Package{271 pub var _ejw82j2ipa0e = Package{
270 .store = "/git/github.com/nektro/zfetch/c2883dd57698f223b2cfdccfc7ea357a12e5f741",272 .store = "/git/github.com/nektro/zfetch/ec3c02114dec5deff3310b590e69ce0aeb67b95b",
271 .name = "zfetch",273 .name = "zfetch",
272 .entry = "/git/github.com/nektro/zfetch/c2883dd57698f223b2cfdccfc7ea357a12e5f741/src/main.zig",274 .entry = "/git/github.com/nektro/zfetch/ec3c02114dec5deff3310b590e69ce0aeb67b95b/src/main.zig",
273 .deps = &[_]*Package{ &_9k24gimke1an, &_csbnipaad8n7 },275 .deps = &[_]*Package{ &_9k24gimke1an, &_csbnipaad8n7 },
274 };276 };
275 pub var _2ta738wrqbaq = Package{277 pub var _2ta738wrqbaq = Package{
276 .store = "/git/github.com/ziglibs/known-folders/1cceeb70e77dec941a4178160ff6c8d05a74de6f",278 .store = "/git/github.com/ziglibs/known-folders/aa24df42183ad415d10bc0a33e6238c437fc0f59",
277 .name = "known-folders",279 .name = "known-folders",
278 .entry = "/git/github.com/ziglibs/known-folders/1cceeb70e77dec941a4178160ff6c8d05a74de6f/known-folders.zig",280 .entry = "/git/github.com/ziglibs/known-folders/aa24df42183ad415d10bc0a33e6238c437fc0f59/known-folders.zig",
279 };281 };
280 pub var _89ujp8gq842x = Package{282 pub var _89ujp8gq842x = Package{
281 .name = "zigmod",283 .name = "zigmod",
docs/README.md+1-1
...@@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed....@@ -10,7 +10,7 @@ The rest of this documentation will assume you already have Zig installed.
1010
11As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master.11As Zig is still in development itself, if you plan to contribute to Zigmod you will need a master download of Zig. Those can be obtained from https://ziglang.org/download/#release-master.
1212
13The earliest Zig release this Zigmod was verified to work with is `0.13.0`.13The earliest Zig release this Zigmod was verified to work with is `0.14.0`.
1414
15## Download15## Download
16You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.16You may download a precompiled binary from https://github.com/nektro/zigmod/releases or build the project from source.
src/cmd/aq.zig+1-1
...@@ -19,7 +19,7 @@ pub const commands = struct {...@@ -19,7 +19,7 @@ pub const commands = struct {
1919
20pub const server_root = "https://aquila.red";20pub const server_root = "https://aquila.red";
2121
22pub fn execute(self_name: []const u8, args: [][]u8) !void {22pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
23 if (args.len == 0) {23 if (args.len == 0) {
24 std.debug.print("{s}\n", .{24 std.debug.print("{s}\n", .{
25 \\This is a subcommand for use with https://github.com/nektro/aquila instances but has no default behavior on its own aside from showing you this nice help text.25 \\This is a subcommand for use with https://github.com/nektro/aquila instances but has no default behavior on its own aside from showing you this nice help text.
src/cmd/aquila/add.zig+1-1
...@@ -8,7 +8,7 @@ const aq = @import("./../aq.zig");...@@ -8,7 +8,7 @@ const aq = @import("./../aq.zig");
8//8//
9//9//
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
12 _ = self_name;12 _ = self_name;
1313
14 const pkg_id = args[0];14 const pkg_id = args[0];
src/cmd/aquila/install.zig+1-1
...@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");...@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");
8const u = @import("./../../util/funcs.zig");8const u = @import("./../../util/funcs.zig");
9const common = @import("./../../common.zig");9const common = @import("./../../common.zig");
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
12 _ = self_name;12 _ = self_name;
1313
14 const home = try knownfolders.getPath(gpa, .home);14 const home = try knownfolders.getPath(gpa, .home);
src/cmd/aquila/showjson.zig+1-1
...@@ -6,7 +6,7 @@ const aq = @import("./../aq.zig");...@@ -6,7 +6,7 @@ const aq = @import("./../aq.zig");
6//6//
7//7//
88
9pub fn execute(self_name: []const u8, args: [][]u8) !void {9pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
10 _ = self_name;10 _ = self_name;
1111
12 const out = std.io.getStdOut().writer();12 const out = std.io.getStdOut().writer();
src/cmd/aquila/update.zig+1-1
...@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");...@@ -8,7 +8,7 @@ const zigmod = @import("../../lib.zig");
8const u = @import("./../../util/funcs.zig");8const u = @import("./../../util/funcs.zig");
9const common = @import("./../../common.zig");9const common = @import("./../../common.zig");
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
12 _ = self_name;12 _ = self_name;
1313
14 const home = try knownfolders.getPath(gpa, .home);14 const home = try knownfolders.getPath(gpa, .home);
src/cmd/ci.zig+1-1
...@@ -8,7 +8,7 @@ const common = @import("./../common.zig");...@@ -8,7 +8,7 @@ const common = @import("./../common.zig");
8// Inspired by:8// Inspired by:
9// https://docs.npmjs.com/cli/v7/commands/npm-ci9// https://docs.npmjs.com/cli/v7/commands/npm-ci
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
12 _ = self_name;12 _ = self_name;
13 _ = args;13 _ = args;
1414
src/cmd/fetch.zig+2-2
...@@ -11,7 +11,7 @@ const license = @import("./license.zig");...@@ -11,7 +11,7 @@ const license = @import("./license.zig");
11//11//
12//12//
1313
14pub fn execute(self_name: []const u8, args: [][]u8) !void {14pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
15 _ = self_name;15 _ = self_name;
1616
17 const gpa = std.heap.c_allocator;17 const gpa = std.heap.c_allocator;
...@@ -89,7 +89,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D...@@ -89,7 +89,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
89 \\ }89 \\ }
90 \\ const b = exe.step.owner;90 \\ const b = exe.step.owner;
91 \\ const result = b.createModule(.{91 \\ const result = b.createModule(.{
92 \\ .target = exe.root_module.resolved_target orelse b.host,92 \\ .target = exe.root_module.resolved_target,
93 \\ });93 \\ });
94 \\ if (self.import) |capture| {94 \\ if (self.import) |capture| {
95 \\ result.root_source_file = capture[1];95 \\ result.root_source_file = capture[1];
src/cmd/generate.zig+5-5
...@@ -9,7 +9,7 @@ const common = @import("./../common.zig");...@@ -9,7 +9,7 @@ const common = @import("./../common.zig");
9//9//
10//10//
1111
12pub fn execute(self_name: []const u8, args: [][]u8) !void {12pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
13 _ = self_name;13 _ = self_name;
14 _ = args;14 _ = args;
1515
...@@ -67,7 +67,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D...@@ -67,7 +67,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
67 \\ var urlpath = url;67 \\ var urlpath = url;
68 \\ urlpath = trimPrefix(u8, urlpath, "https://");68 \\ urlpath = trimPrefix(u8, urlpath, "https://");
69 \\ urlpath = trimPrefix(u8, urlpath, "git://");69 \\ urlpath = trimPrefix(u8, urlpath, "git://");
70 \\ const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.cache_root.path.?, urlpath, commit });70 \\ const repopath = b.fmt("{s}/zigmod/deps/git/{s}/{s}", .{ b.graph.global_cache_root.path.?, urlpath, commit });
71 \\ flip(std.fs.cwd().access(repopath, .{})) catch return result;71 \\ flip(std.fs.cwd().access(repopath, .{})) catch return result;
72 \\72 \\
73 \\ var clonestep = std.Build.Step.Run.create(b, "clone");73 \\ var clonestep = std.Build.Step.Run.create(b, "clone");
...@@ -83,9 +83,9 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D...@@ -83,9 +83,9 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
83 \\ return result;83 \\ return result;
84 \\ }84 \\ }
85 \\85 \\
86 \\ fn make(step: *std.Build.Step, prog_node: std.Progress.Node) !void {86 \\ fn make(step: *std.Build.Step, options: std.Build.Step.MakeOptions) !void {
87 \\ _ = step;87 \\ _ = step;
88 \\ _ = prog_node;88 \\ _ = options;
89 \\ }89 \\ }
90 \\};90 \\};
91 \\91 \\
...@@ -159,7 +159,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D...@@ -159,7 +159,7 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D
159 \\ const result = b.createModule(.{});159 \\ const result = b.createModule(.{});
160 \\ const dummy_library = b.addStaticLibrary(.{160 \\ const dummy_library = b.addStaticLibrary(.{
161 \\ .name = "dummy",161 \\ .name = "dummy",
162 \\ .target = exe.root_module.resolved_target orelse b.host,162 \\ .target = exe.root_module.resolved_target orelse b.graph.host,
163 \\ .optimize = exe.root_module.optimize.?,163 \\ .optimize = exe.root_module.optimize.?,
164 \\ });164 \\ });
165 \\ dummy_library.step.dependOn(fetch_step);165 \\ dummy_library.step.dependOn(fetch_step);
src/cmd/init.zig+1-1
...@@ -13,7 +13,7 @@ const u = @import("./../util/funcs.zig");...@@ -13,7 +13,7 @@ const u = @import("./../util/funcs.zig");
13//13//
14//14//
1515
16pub fn execute(self_name: []const u8, args: [][]u8) !void {16pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
17 _ = self_name;17 _ = self_name;
1818
19 std.debug.print("This utility will walk you through creating a zigmod.yml file.\n", .{});19 std.debug.print("This utility will walk you through creating a zigmod.yml file.\n", .{});
src/cmd/license.zig+1-1
...@@ -15,7 +15,7 @@ const Map = std.StringArrayHashMap(*List);...@@ -15,7 +15,7 @@ const Map = std.StringArrayHashMap(*List);
15// Inspired by:15// Inspired by:
16// https://github.com/onur/cargo-license16// https://github.com/onur/cargo-license
1717
18pub fn execute(self_name: []const u8, args: [][]u8) !void {18pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
19 _ = self_name;19 _ = self_name;
20 _ = args;20 _ = args;
2121
src/cmd/sum.zig+1-1
...@@ -8,7 +8,7 @@ const common = @import("./../common.zig");...@@ -8,7 +8,7 @@ const common = @import("./../common.zig");
8//8//
9//9//
1010
11pub fn execute(self_name: []const u8, args: [][]u8) !void {11pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
12 _ = self_name;12 _ = self_name;
13 _ = args;13 _ = args;
1414
src/cmd/version.zig+1-1
...@@ -7,7 +7,7 @@ const u = @import("./../util/funcs.zig");...@@ -7,7 +7,7 @@ const u = @import("./../util/funcs.zig");
7//7//
8//8//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
11 _ = self_name;11 _ = self_name;
12 _ = args;12 _ = args;
1313
src/cmd/zpm.zig+1-1
...@@ -30,7 +30,7 @@ pub const Package = struct {...@@ -30,7 +30,7 @@ pub const Package = struct {
30 links: []const string,30 links: []const string,
31};31};
3232
33pub fn execute(self_name: []const u8, args: [][]u8) !void {33pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
34 if (args.len == 0) {34 if (args.len == 0) {
35 std.debug.print("{s}\n", .{35 std.debug.print("{s}\n", .{
36 \\This is a subcommand for use with https://github.com/zigtools/zpm-server instances but has no default behavior on its own aside from showing you this nice help text.36 \\This is a subcommand for use with https://github.com/zigtools/zpm-server instances but has no default behavior on its own aside from showing you this nice help text.
src/cmd/zpm/add.zig+1-1
...@@ -10,7 +10,7 @@ const zpm = @import("./../zpm.zig");...@@ -10,7 +10,7 @@ const zpm = @import("./../zpm.zig");
10//10//
11//11//
1212
13pub fn execute(self_name: []const u8, args: [][]u8) !void {13pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
14 _ = self_name;14 _ = self_name;
1515
16 const url = try std.mem.join(gpa, "/", &.{ zpm.server_root, "packages" });16 const url = try std.mem.join(gpa, "/", &.{ zpm.server_root, "packages" });
src/cmd/zpm/search.zig+1-1
...@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");...@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");
7//7//
8//8//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
11 _ = self_name;11 _ = self_name;
12 _ = args;12 _ = args;
1313
src/cmd/zpm/showjson.zig+1-1
...@@ -6,7 +6,7 @@ const zpm = @import("./../zpm.zig");...@@ -6,7 +6,7 @@ const zpm = @import("./../zpm.zig");
6//6//
7//7//
88
9pub fn execute(self_name: []const u8, args: [][]u8) !void {9pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
10 _ = self_name;10 _ = self_name;
1111
12 const out = std.io.getStdOut().writer();12 const out = std.io.getStdOut().writer();
src/cmd/zpm/tags.zig+1-1
...@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");...@@ -7,7 +7,7 @@ const zpm = @import("./../zpm.zig");
7//7//
8//8//
99
10pub fn execute(self_name: []const u8, args: [][]u8) !void {10pub fn execute(self_name: []const u8, args: [][:0]u8) !void {
11 _ = self_name;11 _ = self_name;
12 _ = args;12 _ = args;
1313
src/util/funcs.zig+2-2
...@@ -27,7 +27,7 @@ pub fn fail(comptime fmt: string, args: anytype) noreturn {...@@ -27,7 +27,7 @@ pub fn fail(comptime fmt: string, args: anytype) noreturn {
27 unreachable;27 unreachable;
28}28}
2929
30pub fn try_index(comptime T: type, array: []T, n: usize, def: T) T {30pub fn try_index(comptime T: type, array: []const T, n: usize, def: T) T {
31 if (array.len <= n) {31 if (array.len <= n) {
32 return def;32 return def;
33 }33 }
...@@ -87,7 +87,7 @@ const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";...@@ -87,7 +87,7 @@ const alphabet = "0123456789abcdefghijklmnopqrstuvwxyz";
8787
88pub fn random_string(comptime len: usize) [len]u8 {88pub fn random_string(comptime len: usize) [len]u8 {
89 const now: u64 = @intCast(std.time.nanoTimestamp());89 const now: u64 = @intCast(std.time.nanoTimestamp());
90 var rand = std.rand.DefaultPrng.init(now);90 var rand = std.Random.DefaultPrng.init(now);
91 var r = rand.random();91 var r = rand.random();
92 var buf: [len]u8 = undefined;92 var buf: [len]u8 = undefined;
93 var i: usize = 0;93 var i: usize = 0;
zig.mod+1-1
...@@ -3,7 +3,7 @@ name: zigmod...@@ -3,7 +3,7 @@ name: zigmod
3main: src/lib.zig3main: src/lib.zig
4license: MIT4license: MIT
5description: A package manager for the Zig programming language.5description: A package manager for the Zig programming language.
6min_zig_version: 0.13.06min_zig_version: 0.14.0
7dependencies:7dependencies:
8 - src: git https://github.com/nektro/zig-yaml8 - src: git https://github.com/nektro/zig-yaml
9 - src: git https://github.com/nektro/zig-ansi9 - src: git https://github.com/nektro/zig-ansi
zigmod.lock+18-18
...@@ -1,21 +1,21 @@...@@ -1,21 +1,21 @@
1212
2git https://github.com/marlersoft/zigwin32 commit-407a4c7b869ee3d10db520fdfae8b9faf9b2adb52git https://github.com/marlersoft/zigwin32 commit-d21b419d808215e1f82605fdaddc49750bfa3bca
3git https://github.com/nektro/arqv-ini commit-4c84770a8a2d10b9a9bb1157d69f49e8cd398e1a3git https://github.com/nektro/arqv-ini commit-f1a72055884bd5bc0ffb93ba706c9212139d61b9
4git https://github.com/nektro/iguanaTLS commit-c0a8d949c5cf8c72e2dfdaddee9fb7854b1c217e4git https://github.com/nektro/iguanaTLS commit-b0e810ba8508681935ea7a5af857cc197dcdd279
5git https://github.com/nektro/zfetch commit-c2883dd57698f223b2cfdccfc7ea357a12e5f7415git https://github.com/nektro/zfetch commit-ec3c02114dec5deff3310b590e69ce0aeb67b95b
6git https://github.com/nektro/zig-ansi commit-b0d7878680fff57fd5ed9e7e4d2694acc0b812556git https://github.com/nektro/zig-ansi commit-18c6c24d692df31a17f78299c4a539c935d1feb1
7git https://github.com/nektro/zig-detect-license commit-3049b32e72045d8cefd64b8a7f9b0b8f9e76d80a7git https://github.com/nektro/zig-detect-license commit-9b85f69e9adc28ec70a217c07b86046e331d3485
8git https://github.com/nektro/zig-extras commit-d4f8a6437cb5068072e4df338af77dde15ad36258git https://github.com/nektro/zig-extras commit-5c4543acadb6c24c05d68f79e4c9d2093457a629
9git https://github.com/nektro/zig-git commit-11805225d52bc28c2edc31fd7a855bd1aa16bc679git https://github.com/nektro/zig-git commit-b206fa9978ef2cc06bab4d307c7ed07f1f3b88af
10git https://github.com/nektro/zig-inquirer commit-d6005ee08b2f5ce3c4554fa7f91e733f58b1a43410git https://github.com/nektro/zig-inquirer commit-3bee7b28a37f3d0898119ef095687467fa907d4b
11git https://github.com/nektro/zig-intrusive-parser commit-75a9745d9100b17a9443e6a0051cb140ffbcd0b111git https://github.com/nektro/zig-intrusive-parser commit-eabd7f7b9b8defdbba5504d9ce2c93e1065ca34b
12git https://github.com/nektro/zig-json commit-03b5392e53513a0f90aa5c10219c7caee638399712git https://github.com/nektro/zig-json commit-92dd6f67bbb52f060d5ac20719142b0211854290
13git https://github.com/nektro/zig-leven commit-1c0e475b056ccc6a343187702ee4f3dc415e07cb13git https://github.com/nektro/zig-leven commit-abcde0e877df670f96671bdca5b81b0e809df0d4
14git https://github.com/nektro/zig-licenses commit-d683ae4d499c2a1f7f8c9cdd7304cd5a3c766e7614git https://github.com/nektro/zig-licenses commit-86fc3f6cb4dcc2847832524a3f80d520c7a6577c
15git https://github.com/nektro/zig-licenses-text commit-f1830fbbd78a31d54d8469a0243cb904e7295e1015git https://github.com/nektro/zig-licenses-text commit-a4a66621b3cccdf05e62e0152cf2cd43e9072e97
16git https://github.com/nektro/zig-time commit-b9a93152af3ba73e5f681f73a67f0d676e2ad43316git https://github.com/nektro/zig-time commit-25165db8e626434ab6eae2cff64ba5e72e4fa062
17git https://github.com/nektro/zig-tracer commit-662774eedca41771f9ebd1ab45cfdc8e4319d4b417git https://github.com/nektro/zig-tracer commit-cc75b7f652c7cd51cbfa6e3c7e8155cd153bb68b
18git https://github.com/nektro/zig-yaml commit-4489a2ed0b3f90e962527eaf9ac9c0203a99094a18git https://github.com/nektro/zig-yaml commit-10e8df67c534e186d851ed48e8895374d9a454e9
19git https://github.com/truemedian/hzzp commit-ab212bd208f0eb54d85861679677c5e3dc9bb54319git https://github.com/truemedian/hzzp commit-ab212bd208f0eb54d85861679677c5e3dc9bb543
20git https://github.com/ziglibs/known-folders commit-1cceeb70e77dec941a4178160ff6c8d05a74de6f20git https://github.com/ziglibs/known-folders commit-aa24df42183ad415d10bc0a33e6238c437fc0f59
21git https://github.com/yaml/libyaml tag-0.2.521git https://github.com/yaml/libyaml tag-0.2.5