15 releases (breaking)
Uses new Rust 2024
| new 0.11.0 | Jan 29, 2026 |
|---|---|
| 0.10.0 | Dec 1, 2025 |
| 0.9.0 | Sep 6, 2025 |
| 0.8.0 | Jun 22, 2025 |
| 0.2.0-beta.1 | Nov 17, 2023 |
#595 in Network programming
16,131 downloads per month
Used in 40 crates
(10 directly)
655KB
16K
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
~6–22MB
~208K SLoC