44 releases
Uses old Rust 2015
0.2.2 | Nov 23, 2024 |
---|---|
0.1.17 | Oct 6, 2024 |
0.1.3 | Jul 27, 2024 |
0.0.36 | Mar 14, 2024 |
0.0.1 | Jun 26, 2023 |
#640 in Asynchronous
649 downloads per month
Used in 3 crates
390KB
7.5K
SLoC
Corcovado
Corcovado is a maintained fork of mio 0.6.x along mio-signal-hook, mio-extras and using Windows API that works in Windows 11. It uses Rust edition 2021 instead of 2018.
Corcovado also uses Rust standard library for net and io instead of Mio 0.6.x.
lib.rs
:
A fast, low-level IO library for Rust focusing on non-blocking APIs, event notification, and other useful utilities for building high performance IO apps.
Features
- Non-blocking TCP, UDP
- I/O event notification queue backed by epoll, kqueue, and IOCP
- Zero allocations at runtime
- Platform specific extensions
Non-goals
The following are specifically omitted from Mio and are left to the user or higher-level libraries.
- File operations
- Thread pools / multi-threaded event loop
- Timers
Platforms
Currently supported platforms:
- Linux
- OS X
- Windows
- FreeBSD
- NetBSD
- Android
- iOS
mio can handle interfacing with each of the event notification systems of the aforementioned platforms. The details of
their implementation are further discussed in Poll
.
Usage
Using mio starts by creating a Poll
, which reads events from the OS and
put them into Events
. You can handle IO events from the OS with it.
For more detail, see Poll
.
Readiness event types and utilities. Unix only extensions Fuchsia-only extensions
Stability
This module depends on the magenta-sys crate and so might introduce breaking changes, even on minor releases, so long as that crate remains unstable.
Dependencies
~0.5–43MB
~608K SLoC