#tokio #io #io-write #io-read #async-io #buffer #future

no-std channels-io

Async agnostic/Sync IO & buffer management abstractions

5 unstable releases

0.3.0 Oct 10, 2024
0.2.1 Jul 12, 2024
0.2.0 Jun 20, 2024
0.1.1 Jun 13, 2024
0.1.0 Jun 7, 2024

#1456 in Asynchronous

Download history 7/week @ 2024-08-26 9/week @ 2024-09-23 155/week @ 2024-10-07 29/week @ 2024-10-14 15/week @ 2024-11-04

51 downloads per month
Used in 2 crates

MIT license

110KB
3K SLoC

channels-io

This crate contains generic IO traits that abstract over little implementation differences of different libraries. With this crate it is possible to write IO code that is agnostic over sync/async operation and, if using async, over the runtime that is used. Additionally, this crate implements a generic interface for buffers, a bit like bytes but with some subtle differences.

Features

Feature Description
alloc Enable implementations for alloc structures (Box, Vec, ...)
std Abstract over std::io::Read and std::io::Write
tokio Abstract over tokio::io::AsyncRead and tokio::io::AsyncWrite
futures Abstract over futures::AsyncRead and futures::AsyncWrite
core2 Abstract over core2::io::Read and core2::io::Write
smol Abstract over smol::io::AsyncRead and smol::io::AsyncWrite

Note: The API of this crate is not final and may change at any time without necessarily a major version bump. If you must depend on it pin down the full version of the crate to avoid future incompatibilities.

Dependencies

~0.3–10MB
~118K SLoC