Skip to content

v0.11.0

Choose a tag to compare

@lalinsky lalinsky released this 11 May 10:28

Added

  • std.Io interface is now essentially complete. All major operations are implemented:
    • Spawn and wait on child processes, with non-blocking pipe I/O on POSIX.
    • Iterate over directory entries.
    • Create nested directory paths.
    • Create files atomically (write to temp file, then rename into place), with optional make_path
      and replace support.
    • Rename files without overwriting existing destinations.
    • Batch multiple file I/O operations for linear execution (concurrent execution is deferred).
  • Stream.Reader.fromStd and Stream.Writer.fromStd convert std.Io.net.Stream to zio's buffered
    reader/writer, enabling seamless interop between zio and std networking in the same program.

Changed

  • net.Stream.Reader and net.Stream.Writer are now lighter, storing only the socket handle instead of
    the full stream.

Fixed

  • Fixed a critical bug on Linux with the epoll backend where non-blocking network reads and writes could
    silently succeed with garbage data instead of returning error.WouldBlock.