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

#1076 in Data structures

Download history 1308/week @ 2025-10-07 1123/week @ 2025-10-14 982/week @ 2025-10-21 1381/week @ 2025-10-28 1241/week @ 2025-11-04 1142/week @ 2025-11-11 1265/week @ 2025-11-18 816/week @ 2025-11-25 1198/week @ 2025-12-02 2051/week @ 2025-12-09 1572/week @ 2025-12-16 374/week @ 2025-12-23 557/week @ 2025-12-30 1782/week @ 2026-01-06 1835/week @ 2026-01-13 2252/week @ 2026-01-20

6,500 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.

Dependencies

~240KB