Allow overriding std.Io at a namespace level.

This should only be used when the fundamental types break down, e.g. on freestanding or when adding support for a non-posix OS, where std.Io.File.Handle is set to void.
This commit is contained in:
Khitiara 2026-02-02 12:39:32 -05:00 committed by Andrew Kelley
parent bf1b9318a9
commit e314dadb01

View file

@ -20,7 +20,7 @@ pub const EnumMap = enums.EnumMap;
pub const EnumSet = enums.EnumSet;
pub const HashMap = hash_map.HashMap;
pub const HashMapUnmanaged = hash_map.HashMapUnmanaged;
pub const Io = @import("Io.zig");
pub const Io = if (@hasDecl(root, "std_options_Io")) root.std_options_Io else @import("Io.zig");
pub const MultiArrayList = @import("multi_array_list.zig").MultiArrayList;
pub const PriorityQueue = @import("priority_queue.zig").PriorityQueue;
pub const PriorityDequeue = @import("priority_dequeue.zig").PriorityDequeue;