Crates.io | channels-io |
lib.rs | channels-io |
version | 0.3.0 |
source | src |
created_at | 2024-06-07 08:15:12.364395 |
updated_at | 2024-10-10 13:01:07.971266 |
description | Async agnostic/Sync IO & buffer management abstractions. |
homepage | https://github.com/threadexio/channels-rs |
repository | https://github.com/threadexio/channels-rs |
max_upload_size | |
id | 1264536 |
size | 106,528 |
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.
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.