How rockorager/ourio works
Ourio is an asynchronous I/O runtime centered on Rings and message-tagged Tasks: callers schedule operations, receive completions through callbacks, and can cancel tasks or set deadlines. Its documented capabilities include io_uring and kqueue backends, mock I/O, cross-thread message passing, and polling between Rings. The tree also contains standard-library networking, DNS, and TLS modules; their internal relationships are not established by the available excerpts. No source excerpts were provided, so edges below rely on README statements only.
Main entry points: ourio.zig Ring runtime · Task.zig Task context · Uring.zig io_uring backend · Kqueue.zig kqueue backend
Components 15
Runtime Core
- Ring runtime
src/ourio.zig - Task context
src/ourio/Task.zig - Task queue
src/ourio/queue.zig - Completion callbacks
src/ourio/Task.zig - Deadlines and cancellation
src/ourio/Task.zig - Cross-thread messaging
src/ourio.zig - Ring polling
src/ourio.zig
I/O Backends
- io_uring backend
src/ourio/Uring.zig - kqueue backend
src/ourio/Kqueue.zig - Mock I/O
src/ourio/Mock.zig
Networking
- Standard utilities
src/stda.zig - Networking
src/stda/net.zig - DNS
src/stda/net/dns.zig - TLS
src/stda/tls.zig
Other components
- Library user
Connections 9
- Library user → Ring runtime: schedules I/O
README.md - Ring runtime → Task context: schedules
README.md - Ring runtime → Completion callbacks: dispatches completions
README.md - Library user → Deadlines and cancellation: sets or cancels
README.md - Ring runtime → Cross-thread messaging: sends via msg_ring
README.md - Ring runtime → Ring polling: polls another Ring
README.md - Ring runtime → io_uring backend: uses backend
README.md - Ring runtime → kqueue backend: uses backend
README.md - Library user → Mock I/O: tests async code
README.md