12 releases (7 breaking)

Uses new Rust 2024

0.8.0 Jan 28, 2026
0.7.2 Dec 14, 2025
0.7.0 Sep 6, 2025
0.6.0 Jun 22, 2025
0.2.0-beta.1 Nov 17, 2023

#1785 in Asynchronous

Download history 2876/week @ 2025-11-04 4137/week @ 2025-11-11 3755/week @ 2025-11-18 4421/week @ 2025-11-25 4858/week @ 2025-12-02 6600/week @ 2025-12-09 9447/week @ 2025-12-16 5963/week @ 2025-12-23 4578/week @ 2025-12-30 3571/week @ 2026-01-06 4543/week @ 2026-01-13 4318/week @ 2026-01-20 4328/week @ 2026-01-27 6220/week @ 2026-02-03 4414/week @ 2026-02-10 5653/week @ 2026-02-17

21,381 downloads per month
Used in 87 crates (19 directly)

MIT license

68KB
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

~190KB