From a7df17505fc6f56e6cc7f4620d14945d1836ae7b Mon Sep 17 00:00:00 2001 From: Johnathan Stevers Date: Wed, 26 Feb 2025 20:05:16 -0600 Subject: [PATCH] Update Zig SDK dependencies (#712) * update deps * add config to test * swap to debug allocator * bump version * update example deps --- examples/zig/httpz/hello-world/build.zig.zon | 4 ++-- examples/zig/httpz/hello-world/src/main.zig | 2 +- examples/zig/tokamak/hello-world/build.zig.zon | 2 +- sdk/zig/build.zig | 2 ++ sdk/zig/build.zig.zon | 10 +++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/zig/httpz/hello-world/build.zig.zon b/examples/zig/httpz/hello-world/build.zig.zon index d247bb75a..f2a1c7e9c 100644 --- a/examples/zig/httpz/hello-world/build.zig.zon +++ b/examples/zig/httpz/hello-world/build.zig.zon @@ -3,8 +3,8 @@ .version = "0.0.0", .dependencies = .{ .httpz = .{ - .url = "git+https://github.com/karlseguin/http.zig?ref=master#a691d731047e9a5a79d71ac594cb8f5fad1d0705", - .hash = "122072c92285c8c44055eb45058b834d1e7ecd46a5704d58a207103c39fb5922b8f5", + .url = "git+https://github.com/karlseguin/http.zig?ref=master#f16b296a2772be97e48a57259c004aa6584a02c6", + .hash = "1220e524a72c18aa2585f326902066fda544c5df0cf6618eea885b04041204dc5d7f", }, .datastar = .{ .path = "../../../../sdk/zig/", diff --git a/examples/zig/httpz/hello-world/src/main.zig b/examples/zig/httpz/hello-world/src/main.zig index 8c9566806..7aadf12c9 100644 --- a/examples/zig/httpz/hello-world/src/main.zig +++ b/examples/zig/httpz/hello-world/src/main.zig @@ -3,7 +3,7 @@ const httpz = @import("httpz"); const datastar = @import("datastar").httpz; pub fn main() !void { - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + var gpa = std.heap.DebugAllocator(.{}){}; defer _ = gpa.deinit(); const allocator = gpa.allocator(); diff --git a/examples/zig/tokamak/hello-world/build.zig.zon b/examples/zig/tokamak/hello-world/build.zig.zon index c425abf48..a76e7c600 100644 --- a/examples/zig/tokamak/hello-world/build.zig.zon +++ b/examples/zig/tokamak/hello-world/build.zig.zon @@ -4,7 +4,7 @@ .dependencies = .{ .tokamak = .{ .url = "git+https://github.com/cztomsik/tokamak#857fa78a6fc77c4effa235ef049b8a6461120e5d", - .hash = "1220ddbe12aa69b3293f0abd7078ff93c309b4f4383e18cbe24b163e4ee4b2befa49", + .hash = "122071c2c0adaa3fa3a27a872fdc0b2e762db515e3ef8c5b2225332141500e13f110", }, .datastar = .{ .path = "../../../../sdk/zig", diff --git a/sdk/zig/build.zig b/sdk/zig/build.zig index 57769c1b7..e983e3c77 100644 --- a/sdk/zig/build.zig +++ b/sdk/zig/build.zig @@ -31,6 +31,8 @@ pub fn build(b: *std.Build) void { }, }); + tests.root_module.addOptions("config", options); + tests.root_module.addImport("httpz", httpz); tests.root_module.addImport("tokamak", tokamak); diff --git a/sdk/zig/build.zig.zon b/sdk/zig/build.zig.zon index 4983616a0..0b0efafb5 100644 --- a/sdk/zig/build.zig.zon +++ b/sdk/zig/build.zig.zon @@ -1,14 +1,14 @@ .{ .name = "datastar", - .version = "1.0.0-beta.1", + .version = "1.0.0-beta.2", .dependencies = .{ .httpz = .{ - .url = "git+https://github.com/karlseguin/http.zig?ref=master#a691d731047e9a5a79d71ac594cb8f5fad1d0705", - .hash = "122072c92285c8c44055eb45058b834d1e7ecd46a5704d58a207103c39fb5922b8f5", + .url = "git+https://github.com/karlseguin/http.zig?ref=master#f16b296a2772be97e48a57259c004aa6584a02c6", + .hash = "1220e524a72c18aa2585f326902066fda544c5df0cf6618eea885b04041204dc5d7f", }, .tokamak = .{ - .url = "git+https://github.com/cztomsik/tokamak#857fa78a6fc77c4effa235ef049b8a6461120e5d", - .hash = "1220ddbe12aa69b3293f0abd7078ff93c309b4f4383e18cbe24b163e4ee4b2befa49", + .url = "git+https://github.com/cztomsik/tokamak#88b6875782fa03b9a8408a80e142883968a59788", + .hash = "122071c2c0adaa3fa3a27a872fdc0b2e762db515e3ef8c5b2225332141500e13f110", }, }, .paths = .{