Currently in order to release `hashes v1.0` we need to 1.0 `io` as well. For multiple reasons, many out of our control, the `io` crate may not stabalise any time soon. Instead we can invert the dependency between the two crates. This is an ingenious idea, props to Kixunil for coming up with it. Notes - `io` does not currently re-export the `hashes` crate. - This work highlights that we cannot call `hash_reader` on a siphash. - The `Hmac::hash_reader` uses the default key which may not be obvious. Signed-off-by: Tobin C. Harding <me@tobin.cc> |
||
---|---|---|
.. | ||
contrib | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml | ||
README.md |
README.md
Rust-Bitcoin I/O Library
The std::io
module is not exposed in no-std
Rust so building no-std
applications which require
reading and writing objects via standard traits is not generally possible. Thus, this library exists
to export a minimal version of std::io
's traits which we use in rust-bitcoin
so that we can
support no-std
applications.
These traits are not one-for-one drop-ins, but are as close as possible while still implementing
std::io
's traits without unnecessary complexity.