Is this a correct replacement now that readToEndAlloc() is gone?
const stdin = std.fs.File.stdin();
- const input = try stdin.readToEndAlloc(allocator, std.math.maxInt(u32));
+ var buf: [4096]u8 = undefined;
+ var freader = stdin.reader(&buf);
+ const input = try freader.interface.allocRemaining(allocator, .limited(std.math.maxInt(u32)));
I'm not really trying to limit the file size. So I guess I should use .unlimited instead of .limited().