#io #tee #seek #writer

io_tee

Tee Read, BufRead, and Seek instances to a writer

2 releases

0.1.1 Aug 17, 2021
0.1.0 Aug 17, 2021
Download history 248/week @ 2022-12-02 360/week @ 2022-12-09 355/week @ 2022-12-16 422/week @ 2022-12-23 1056/week @ 2022-12-30 592/week @ 2023-01-06 361/week @ 2023-01-13 374/week @ 2023-01-20 603/week @ 2023-01-27 644/week @ 2023-02-03 684/week @ 2023-02-10 553/week @ 2023-02-17 552/week @ 2023-02-24 1017/week @ 2023-03-03 1285/week @ 2023-03-10 910/week @ 2023-03-17

3,824 downloads per month
Used in 18 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