Releases: JarredAllen/hex-display
Releases · JarredAllen/hex-display
v0.4.0
Breaking changes
- Removed the vestigial
stdfeature. Users relying onfeatures = ["std"]should switch to
features = ["alloc"]. HexDisplayExtis now a sealed trait: downstream crates can no longer provide their own
implementations. The new blanket impl forT: AsRef<[u8]> + ?Sizedalready covers every
reasonable input.HexDisplayExtconvenience methodshex_stringupper_hex_stringrenamed toto_hex_stringand
to_upper_hex_stringto match preferred Rust naming conventions.Hexobject now uses explicitHex::new()constructor instead of providing public fields.- MSRV raised from 1.56 to 1.74.
Added
- The formatter's
width,align, andfillare now honored for the single-line hex output. - Alternate-form hexdump output:
format!("{:#}", bytes.hex())produces a multilinehexdump -C-style dump with an offset column and ASCII gutter. Combines with the upper-case flag
({:#X}) and width/alignment/fill. to_hex_dump/to_upper_hex_dumpconvenience methods onHexDisplayExt, gated on thealloc
feature, to produce the hexdump as described above but as a string.- Generic
HexDisplayExtimplementation for anyT: AsRef<[u8]> + ?Sized.
Full Changelog
v0.3.2
This release comes with a significant performance increase!
Full Changelog: v0.3.1...v0.3.2
v0.3.1
Version bump