#data #rw #reader

dh

Data handling in Rust, made easy

20 releases (11 breaking)

Uses new Rust 2024

new 0.12.2 Aug 6, 2026
0.11.2 Aug 5, 2026
0.11.1 Jun 26, 2026
0.10.0 Dec 16, 2025
0.8.1 Nov 23, 2024

#650 in Encoding


Used in 5 crates

MIT license

40KB
781 lines

Crates.io Version GitHub Issues or Pull Requests GitHub Actions Workflow Status

dh

Binary data handling in Rust, made easy.

Features

  • Read and write files in streams
  • Read and write u8 vectors
  • std::io::Read and std::io::Write implementations for ReadVal and WriteVal (happens automatically as they extend these traits)
  • Copying data from ReadVal to Write
  • Floating point number support
  • Variable-length integers (vli crate feature)

Planned features

  • Reading and writing of data that does not fill a whole byte

Installation

cargo add dh

Documentation

The documentation can be found on docs.rs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

No runtime deps

Features