5 releases

0.2.1 Sep 19, 2022
0.2.0 Jan 20, 2019
0.1.2 Feb 18, 2018
0.1.1 Nov 15, 2017
0.1.0 Nov 15, 2017

#673 in Data structures

Download history 564/week @ 2024-11-08 569/week @ 2024-11-15 1308/week @ 2024-11-22 1042/week @ 2024-11-29 1068/week @ 2024-12-06 1107/week @ 2024-12-13 311/week @ 2024-12-20 172/week @ 2024-12-27 924/week @ 2025-01-03 703/week @ 2025-01-10 1045/week @ 2025-01-17 634/week @ 2025-01-24 1431/week @ 2025-01-31 2214/week @ 2025-02-07 596/week @ 2025-02-14

4,364 downloads per month
Used in 32 crates (5 directly)

MIT/Apache

26KB
586 lines

iowrap

CI

A couple of utilities that I have ended up wanting in various projects, around std::io::Read streams.

  • Eof has an eof()? -> bool to check if the stream is at the end.
  • Pos has an position() -> u64 to find out where you are in a stream.
  • ReadMany adds a read_many to Read, like read_exact but with defined EoF behaviour
  • Ignore implements Read and Write and Seek and.. and does nothing.
  • ShortRead is an intentionally, controllably naughty Read for testing.

Documentation

Please read the iowrap documentation on docs.rs.

License

MIT or Apache 2.0.


lib.rs:

Some utility methods for wrapping std::io::Read and std::io::Write.

Dependencies

~245KB