`digest` 0.11 removed its `std::io` impls and its `std` feature, moving them to the separate `digest-io` crate (RustCrypto/traits#1809), so streaming bytes into a hasher needs a wrapper again. Kept local instead of taking a dependency for one `Write` impl; equivalent to `digest_io::IoWrapper`.
| 62 | /// taking a dependency for one `Write` impl; equivalent to |
| 63 | /// `digest_io::IoWrapper`. |
| 64 | struct DigestWriter<'a, D>(&'a mut D); |
| 65 | |
| 66 | impl<D: Digest> std::io::Write for DigestWriter<'_, D> { |
| 67 | fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { |