std.io: deprecated Reader/Writer; introduce new API

This commit is contained in:
Andrew Kelley
2025-06-27 19:33:03 -07:00
parent fc2c1883b3
commit 9f27d770a1
56 changed files with 4272 additions and 474 deletions

View File

@@ -307,7 +307,7 @@ test "stringify tuple" {
fn testStringify(expected: []const u8, value: anytype, options: StringifyOptions) !void {
const ValidationWriter = struct {
const Self = @This();
pub const Writer = std.io.Writer(*Self, Error, write);
pub const Writer = std.io.GenericWriter(*Self, Error, write);
pub const Error = error{
TooMuchData,
DifferentData,