limit_read 0.2.0

A companion to std::io::Take and an extension to std::io::BufRead to put a cap on methods that could potentionally read infinitely.
Documentation

LimitRead

A companion to std::io::Take and an extension to std::io::BufRead to put a cap on methods that could potentionally read infinitely.