remove parse() function
All checks were successful
Generic zig build / build (push) Successful in 20s

This commit is contained in:
Emil Lerch 2026-05-29 11:17:04 -07:00
parent b1e784dbb2
commit f149909075
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 352 additions and 786 deletions

View file

@ -74,8 +74,13 @@ pub fn main(init: std.process.Init) !void {
if (std.mem.eql(u8, format, "srf")) {
var reader = std.Io.Reader.fixed(data.items);
const records = try srf.parse(&reader, allocator, .{ .parse_allocator = .none });
defer records.deinit();
const it = try srf.iterator(&reader, allocator, .{ .parse_allocator = .none });
defer it.deinit();
// We want to touch every field, otherwise we're not really excercising
// this appropriately
while (try it.next()) |rec| {
while (try rec.next()) |_| {}
}
} else if (std.mem.eql(u8, format, "jsonl")) {
var lines = std.mem.splitScalar(u8, data.items, '\n');
while (lines.next()) |line| {

File diff suppressed because it is too large Load diff