ReviewOS

also looking at this

craft-native/craft

fix(ci): build the SDK types with the repo's own tsc (and pin the pantry action)

#104
Merged glennmichael123 wants to merge fix/pin-pantry-action into main
29 files +85 -56
packages/zig/src/benchmark.zigmodified+3-3
Changes to packages/zig/src/benchmark.zig
@@ -276,7 +276,7 @@ pub const BenchmarkSuite = struct {
276276 }
277277
278278 pub fn generateReport(self: *const BenchmarkSuite, allocator: std.mem.Allocator) ![]const u8 {
279 var buf = std.ArrayList(u8){ .items = &.{}, .capacity = 0 };
279 var buf = std.ArrayList(u8).empty;
280280 errdefer buf.deinit(allocator);
281281
282282 const header = try std.fmt.allocPrint(allocator, "Benchmark Suite: {s}\n", .{self.name});
@@ -301,7 +301,7 @@ pub const BenchmarkSuite = struct {
301301 }
302302
303303 pub fn generateJSON(self: *const BenchmarkSuite, allocator: std.mem.Allocator) ![]const u8 {
304 var buf = std.ArrayList(u8){ .items = &.{}, .capacity = 0 };
304 var buf = std.ArrayList(u8).empty;
305305 errdefer buf.deinit(allocator);
306306
307307 try buf.appendSlice(allocator, "{");
@@ -422,7 +422,7 @@ pub fn benchmarkArrayListOperations(allocator: std.mem.Allocator, operations: us
422422}
423423
424424fn arrayListOps(allocator: std.mem.Allocator, ops: usize) !void {
425 var list = std.ArrayList(usize){ .items = &.{}, .capacity = 0 };
425 var list = std.ArrayList(usize).empty;
426426 defer list.deinit(allocator);
427427
428428 var i: usize = 0;