Compio: a thread-per-core Rust runtime with IOCP/io_uring/polling
github.com·7h·
Discuss: r/rust
Flag this post

Compio

A thread-per-core Rust runtime with IOCP/io_uring/polling. The name comes from “completion-based IO”. This crate is inspired by monoio.

Why not Tokio?

Tokio is a great generic-purpose async runtime. However, it is poll-based, and even uses undocumented APIs on Windows. We would like some new high-level APIs to perform IOCP/io_uring.

compio isn’t Tokio-based. This is mainly because that no public APIs to control IOCP in mio, and tokio won’t expose APIs to control mio before mio reaches 1.0.

Why not monoio?

Monoio focuses on Linux and io-uring, and fallbacks to mio on other platforms.

Why not glommio?

It doesn’t support Windows.

Quick start

Add compio as …

Similar Posts

Loading similar posts...