#api #io #stream

layered-io

I/O traits extending Read and Write

20 releases (13 breaking)

0.13.0 Mar 16, 2022
0.11.0 Dec 24, 2021
0.10.1 Nov 19, 2021
0.6.1 Jul 14, 2021
0.4.0 Mar 2, 2021

#1109 in Rust patterns

Download history 41/week @ 2022-02-04 14/week @ 2022-02-11 33/week @ 2022-02-18 13/week @ 2022-02-25 12/week @ 2022-03-04 123/week @ 2022-03-11 105/week @ 2022-03-18 14/week @ 2022-03-25 18/week @ 2022-04-01 23/week @ 2022-04-08 15/week @ 2022-04-15 32/week @ 2022-04-22 126/week @ 2022-04-29 101/week @ 2022-05-06 355/week @ 2022-05-13 75/week @ 2022-05-20

681 downloads per month
Used in 5 crates

Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT

68KB
1.5K SLoC

layered-io

I/O traits extending Read and Write

Github Actions CI Status crates.io page docs.rs docs

This crate defines ReadLayered and WriteLayered traits which extend std::io::Read and std::io::Write with additional functionality useful for performing I/O through layers of buffering and translation.

And it defines LayeredReader, LayeredWriter, and LayeredDuplexer types which implement ReadLayered, WriteLayered, and both, respectively, by wrapping implementations of std::io::Read, std::io::Write, and both, respectively.

Dependencies

~0.3–2MB
~43K SLoC