Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ zig-out/**
zig-cache/**
.zig-cache/**
vendor/**
zig-pkg/**
5 changes: 2 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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")},
},
);

Expand Down
6 changes: 3 additions & 3 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -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 = .{""},
Expand Down
2 changes: 1 addition & 1 deletion src/api.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pub const protobuf = struct {
pub const cclink = @import("cclink.zig");

test {
std.testing.refAllDeclsRecursive(@This());
std.testing.refAllDecls(@This());
}
4 changes: 4 additions & 0 deletions src/cclink.zig
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ test nestedWrite {
}

const std = @import("std");

test {
std.testing.refAllDecls(@This());
}
4 changes: 4 additions & 0 deletions src/cclink/wr.zig
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ pub const Wr = packed struct(u256) {
test "Wr" {
try std.testing.expectEqual(32, @sizeOf(Wr));
}

test {
std.testing.refAllDecls(@This());
}
4 changes: 4 additions & 0 deletions src/cclink/ww.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ test "Ww" {
),
);
}

test {
std.testing.refAllDecls(@This());
}
4 changes: 4 additions & 0 deletions src/cclink/x.zig
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ pub const X = packed struct(u64) {
test "X" {
try std.testing.expectEqual(8, @sizeOf(X));
}

test {
std.testing.refAllDecls(@This());
}
4 changes: 4 additions & 0 deletions src/cclink/y.zig
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,7 @@ pub const Y = packed struct(u64) {
test "Y" {
try std.testing.expectEqual(8, @sizeOf(Y));
}

test {
std.testing.refAllDecls(@This());
}
Loading