14 releases (7 breaking)

Uses new Rust 2024

0.8.2-rc.1 Apr 23, 2026
0.8.1 Mar 23, 2026
0.8.0 Jan 28, 2026
0.7.2 Dec 14, 2025
0.2.0-beta.1 Nov 17, 2023

#1687 in Asynchronous

Download history 4315/week @ 2026-01-24 5911/week @ 2026-01-31 4626/week @ 2026-02-07 5026/week @ 2026-02-14 5711/week @ 2026-02-21 6772/week @ 2026-02-28 10097/week @ 2026-03-07 7906/week @ 2026-03-14 11170/week @ 2026-03-21 9300/week @ 2026-03-28 9650/week @ 2026-04-04 10282/week @ 2026-04-11 7542/week @ 2026-04-18 8805/week @ 2026-04-25 13561/week @ 2026-05-02 15851/week @ 2026-05-09

47,849 downloads per month
Used in 109 crates (20 directly)

MIT license

71KB
1.5K SLoC


compio-buf

MIT licensed crates.io docs.rs Check Test

Buffer traits for completion-based async IO.

This crate provides fundamental buffer traits (IoBuf, IoBufMut, IoVectoredBuf, IoVectoredBufMut) to interact with compio (and other runtimes). The crate itself is runtime-agnostic and can be used anywhere.

Usage

For application

Use compio::buf re-exported from compio crate, then use the buffer traits in your application:

use compio::buf::{IoBuf, IoBufMut};

For library

If you are writing libraries that want to support compio-buf, you can depend on this crate directly:

cargo add compio-buf

Then you can use the buffer traits in your library:

use compio_buf::{IoBuf, IoBufMut};

Dependencies

~215KB