18 releases (11 breaking)
Uses new Rust 2024
| new 0.12.0-rc.2 | May 16, 2026 |
|---|---|
| 0.11.1 | Feb 25, 2026 |
| 0.10.0 | Dec 1, 2025 |
| 0.9.0 | Sep 6, 2025 |
| 0.2.0-beta.1 | Nov 17, 2023 |
#606 in Network programming
41,628 downloads per month
Used in 61 crates
(12 directly)
1MB
22K
SLoC
compio-net
Networking IO for compio.
This crate provides async networking primitives built on compio's completion-based IO model.
Usage
Use compio directly with net feature enabled:
cargo add compio --features net
Example:
use compio::net::TcpListener;
use compio::io::{AsyncReadExt, AsyncWriteExt};
let listener = TcpListener::bind("127.0.0.1:8080").await?;
loop {
let (stream, addr) = listener.accept().await?;
// Handle connection
}
Dependencies
~8–17MB
~255K SLoC