2 releases

0.1.1 Aug 17, 2021
0.1.0 Aug 17, 2021

#828 in Asynchronous

Download history 2803/week @ 2024-06-17 2903/week @ 2024-06-24 3329/week @ 2024-07-01 3367/week @ 2024-07-08 3635/week @ 2024-07-15 3311/week @ 2024-07-22 4306/week @ 2024-07-29 3411/week @ 2024-08-05 3862/week @ 2024-08-12 4282/week @ 2024-08-19 3974/week @ 2024-08-26 4925/week @ 2024-09-02 4740/week @ 2024-09-09 3967/week @ 2024-09-16 4630/week @ 2024-09-23 5778/week @ 2024-09-30

19,437 downloads per month
Used in 41 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