diff --git a/intrusive_parser.zig b/intrusive_parser.zig index 7917516229dbc9b81402831f703d84bd99fc762d..193d39bb499100cec70133b479912e1108bc90c8 100644 --- a/intrusive_parser.zig +++ b/intrusive_parser.zig @@ -1,9 +1,10 @@ const std = @import("std"); const string = []const u8; const extras = @import("extras"); +const nio = @import("nio"); pub const Parser = struct { - any: std.io.AnyReader, + any: nio.AnyReadable, allocator: std.mem.Allocator, temp: std.ArrayListUnmanaged(u8) = .{}, idx: usize = 0, @@ -14,7 +15,7 @@ pub const Parser = struct { strings_map: std.StringArrayHashMapUnmanaged(usize) = .{}, string_tag: u8, - pub fn init(allocator: std.mem.Allocator, any: std.io.AnyReader, string_tag: u8) Parser { + pub fn init(allocator: std.mem.Allocator, any: nio.AnyReadable, string_tag: u8) Parser { return .{ .any = any, .allocator = allocator, diff --git a/licenses.txt b/licenses.txt index 3203bcc7c5ffdfb417f2e424609843e7e3166641..410fbadddc6b9476accde7c6aa316e417459ff2c 100644 --- a/licenses.txt +++ b/licenses.txt @@ -1,6 +1,7 @@ MPL-2.0: = https://spdx.org/licenses/MPL-2.0 - This +- git https://github.com/nektro/zig-nio MIT: = https://spdx.org/licenses/MIT diff --git a/zigmod.yml b/zigmod.yml index 6f0bc780c15e3a858d78dcfce92b73ba3d5804cc..04029da12cdd4d9099e8931fbea40ca86a321453 100644 --- a/zigmod.yml +++ b/zigmod.yml @@ -5,3 +5,4 @@ license: MPL-2.0 description: Core plumbing to make text or binary document parsers with Data Oriented Design dependencies: - src: git https://github.com/nektro/zig-extras + - src: git https://github.com/nektro/zig-nio