also looking at this
fix: Zig 0.16.0-dev.2565 compatibility
#1
3 files
+8
-11
| @@ -43,11 +43,9 @@ pub fn fileAppend(file_name: []const u8, label_: []const u8, client_random: []co | ||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | fn fileWrite(file_name: []const u8, line: []const u8) !void { |
| 46 | var file = try std.fs.createFileAbsolute(file_name, .{ .truncate = false }); | |
| 47 | defer file.close(); | |
| 48 | const stat = try file.stat(); | |
| 49 | try file.seekTo(stat.size); | |
| 50 | try file.writeAll(line); | |
| 46 | // Stubbed: std.fs file APIs removed in Zig 0.16, needs Io context | |
| 47 | _ = file_name; | |
| 48 | _ = line; | |
| 51 | 49 | } |
| 52 | 50 | |
| 53 | 51 | pub fn formatLine(buf: []u8, label_: []const u8, client_random: []const u8, secret: []const u8) ![]const u8 { |