44 releases

Uses old Rust 2015

new 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

#631 in Asynchronous

Download history 273/week @ 2024-08-03 185/week @ 2024-08-10 355/week @ 2024-08-17 356/week @ 2024-08-24 186/week @ 2024-08-31 360/week @ 2024-09-07 339/week @ 2024-09-14 259/week @ 2024-09-21 55/week @ 2024-09-28 218/week @ 2024-10-05 50/week @ 2024-10-12 20/week @ 2024-10-19 13/week @ 2024-10-26 83/week @ 2024-11-02 156/week @ 2024-11-09 193/week @ 2024-11-16

447 downloads per month
Used in 3 crates

MIT license

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.4–43MB
~608K SLoC