commit 40acf5b45ac3f777548f7198615ce1132f14a2a0
parent 175296676b77c45fc56bc44c6a5ae930b552f9fb
Author: Martin Ashby <martin@ashbysoft.com>
Date: Thu, 4 Dec 2025 10:17:03 +0000
Update for zig 0.14.0 compat
Diffstat:
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,4 @@
zig-out
zig-cache/
tmp/
+.zig-cache/
diff --git a/build.zig.zon b/build.zig.zon
@@ -1,11 +1,12 @@
.{
- .name = "zigvm",
+ .name = .zigvm,
.version = "0.0.0",
+ .fingerprint = 0x3490a9ca22bc54bb,
.dependencies = .{
.minisign = .{
- .url = "https://github.com/jedisct1/zig-minisign/archive/b9ae25191ca5ef19525f51d38f9f7503d6b5e7e8.tar.gz",
- .hash = "122061fe69199522c3e88f680909fbf590b9e26a8c0342e53c788af2a2e089157e9e",
+ .url = "https://github.com/jedisct1/zig-minisign/archive/f3d956e3d33d259a1f666229f06a90115e64cb8c.tar.gz",
+ .hash = "minizign-0.1.6-gg18cQLaAQA_9jDaZCMzF71v4I2eNAeq1JOmrteCInk1",
}
},
diff --git a/src/main.zig b/src/main.zig
@@ -246,7 +246,7 @@ fn baseNameFromUrl(a: std.mem.Allocator, url: []const u8) ![]const u8 {
const ClientWithBuffer = struct {
client: *std.http.Client,
- buffer: [std.mem.page_size]u8 = .{0} ** std.mem.page_size,
+ buffer: [4096]u8 = .{0} ** 4096,
fn open(self: *ClientWithBuffer, method: std.http.Method, uri: std.Uri) !std.http.Client.Request {
return try self.client.open(method, uri, .{ .server_header_buffer = &self.buffer });
@@ -306,7 +306,7 @@ fn refreshIndex(client: *ClientWithBuffer, file: *std.fs.File) !void {
}
fn pump(reader: anytype, writer: anytype) !void {
- var buf = [_]u8{0} ** std.mem.page_size;
+ var buf = [_]u8{0} ** 4096;
while (true) {
const sz = try reader.read(&buf);
if (sz == 0) break;