2 releases

0.1.1 Aug 17, 2021
0.1.0 Aug 17, 2021

#806 in Asynchronous

Download history 1765/week @ 2023-11-20 2140/week @ 2023-11-27 2039/week @ 2023-12-04 2854/week @ 2023-12-11 2005/week @ 2023-12-18 959/week @ 2023-12-25 2038/week @ 2024-01-01 2355/week @ 2024-01-08 3571/week @ 2024-01-15 2946/week @ 2024-01-22 4324/week @ 2024-01-29 4205/week @ 2024-02-05 4255/week @ 2024-02-12 2287/week @ 2024-02-19 2780/week @ 2024-02-26 3632/week @ 2024-03-04

13,357 downloads per month
Used in 29 crates (4 directly)

MIT/Apache

9KB
190 lines

io_tee

Crates.io

A very simple library which supports teeing Read, BufRead, and Seek readers and Writers. Implementations respect the underlying reader or writer's overriden methods.

For convenience, ReadExt and WriteExt traits are provided to easily construct TeeReader and TeeWriter from existing Read and Write streams.

License

Licensed under either of

  • Apache License, Version 2.0
  • MIT license at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Various helpers for teeing readers and writers.

TeeReader and TeeWriter respect the underlying Reader and Writeer's method overrides. (Except for vectored, because I haven't got around to that yet)

TeeReader supports teeing Read, BufRead and Seek readers.

No runtime deps