From b3ecd63301bb683075c884a7d68115e0b87b7740 Mon Sep 17 00:00:00 2001 From: aaumar25 Date: Wed, 15 Apr 2026 13:42:14 +0900 Subject: [PATCH 1/3] zig: Upgrade to 0.16.0 --- .gitignore | 1 + build.zig | 5 ++--- build.zig.zon | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index afad35e..07133b8 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ zig-out/** zig-cache/** .zig-cache/** vendor/** +zig-pkg/** diff --git a/build.zig b/build.zig index 961c45d..bdf1f46 100644 --- a/build.zig +++ b/build.zig @@ -41,13 +41,12 @@ pub fn build(b: *std.Build) !void { ); const protoc_step = protobuf.RunProtocStep.create( - b, protobuf_dep.builder, target, .{ .destination_directory = b.path("src/protobuf"), - .source_files = &.{"mmc.proto"}, - .include_directories = &.{"protobuf"}, + .source_files = &.{b.path("protobuf/mmc.proto")}, + .include_directories = &.{b.path("protobuf")}, }, ); diff --git a/build.zig.zon b/build.zig.zon index cfb472d..8c940b0 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -2,11 +2,11 @@ .name = .mmc_api, .version = "0.0.0", .fingerprint = 0xdcdffdab47da9a3f, - .minimum_zig_version = "0.15.2", + .minimum_zig_version = "0.16.0", .dependencies = .{ .protobuf = .{ - .url = "https://github.com/mochalins/protobuf.zig/archive/477466e.tar.gz", - .hash = "protobuf-0.1.0-0e82aqvRAwBo5-ccOGlXywY9X4lkQUx02CwMBE_fq4AI", + .url = "https://github.com/Arwalk/zig-protobuf/archive/7673d62.tar.gz", + .hash = "protobuf-3.0.0-0e82auyUKACQqyLICPhWm6kJoAru5DNP-idAJMP1W94r", }, }, .paths = .{""}, From 7bc4cdfc93f7b096cb6cab8f0e2c4ef0213908aa Mon Sep 17 00:00:00 2001 From: aaumar25 Date: Wed, 15 Apr 2026 13:53:47 +0900 Subject: [PATCH 2/3] ci: Upgrade zig version to 0.16.0 --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f5286f..5e078db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: - uses: mlugg/setup-zig@v2 with: - version: 0.15.1 + version: 0.16.0 - uses: actions/github-script@v7 id: parse-version-protobuf diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0af99c..cdda204 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: - uses: mlugg/setup-zig@v2 with: - version: 0.15.1 + version: 0.16.0 - name: Run zig fmt if: matrix.os == 'Linux' From 5f5b1a459f67fc088e80707852c4613fc2210e14 Mon Sep 17 00:00:00 2001 From: aaumar25 Date: Wed, 15 Apr 2026 13:54:05 +0900 Subject: [PATCH 3/3] test: fix failing test reference: https://codeberg.org/ziglang/zig/commit/790d28d6cd9029805af857d56645a6ce191bfe91 --- src/api.zig | 2 +- src/cclink.zig | 4 ++++ src/cclink/wr.zig | 4 ++++ src/cclink/ww.zig | 4 ++++ src/cclink/x.zig | 4 ++++ src/cclink/y.zig | 4 ++++ 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/api.zig b/src/api.zig index a750d98..7ce08d2 100644 --- a/src/api.zig +++ b/src/api.zig @@ -11,5 +11,5 @@ pub const protobuf = struct { pub const cclink = @import("cclink.zig"); test { - std.testing.refAllDeclsRecursive(@This()); + std.testing.refAllDecls(@This()); } diff --git a/src/cclink.zig b/src/cclink.zig index cff8419..bf95d45 100644 --- a/src/cclink.zig +++ b/src/cclink.zig @@ -127,3 +127,7 @@ test nestedWrite { } const std = @import("std"); + +test { + std.testing.refAllDecls(@This()); +} diff --git a/src/cclink/wr.zig b/src/cclink/wr.zig index 0d422fd..1fc4685 100644 --- a/src/cclink/wr.zig +++ b/src/cclink/wr.zig @@ -120,3 +120,7 @@ pub const Wr = packed struct(u256) { test "Wr" { try std.testing.expectEqual(32, @sizeOf(Wr)); } + +test { + std.testing.refAllDecls(@This()); +} diff --git a/src/cclink/ww.zig b/src/cclink/ww.zig index b951d02..b84a4b3 100644 --- a/src/cclink/ww.zig +++ b/src/cclink/ww.zig @@ -75,3 +75,7 @@ test "Ww" { ), ); } + +test { + std.testing.refAllDecls(@This()); +} diff --git a/src/cclink/x.zig b/src/cclink/x.zig index aa48396..1546082 100644 --- a/src/cclink/x.zig +++ b/src/cclink/x.zig @@ -163,3 +163,7 @@ pub const X = packed struct(u64) { test "X" { try std.testing.expectEqual(8, @sizeOf(X)); } + +test { + std.testing.refAllDecls(@This()); +} diff --git a/src/cclink/y.zig b/src/cclink/y.zig index 621be1c..7d8212c 100644 --- a/src/cclink/y.zig +++ b/src/cclink/y.zig @@ -177,3 +177,7 @@ pub const Y = packed struct(u64) { test "Y" { try std.testing.expectEqual(8, @sizeOf(Y)); } + +test { + std.testing.refAllDecls(@This()); +}