Skip to content

Releases: JarredAllen/hex-display

v0.4.0

22 May 00:47

Choose a tag to compare

Breaking changes

  • Removed the vestigial std feature. Users relying on features = ["std"] should switch to
    features = ["alloc"].
  • HexDisplayExt is now a sealed trait: downstream crates can no longer provide their own
    implementations. The new blanket impl for T: AsRef<[u8]> + ?Sized already covers every
    reasonable input.
  • HexDisplayExt convenience methods hex_string upper_hex_string renamed to to_hex_string and
    to_upper_hex_string to match preferred Rust naming conventions.
  • Hex object now uses explicit Hex::new() constructor instead of providing public fields.
  • MSRV raised from 1.56 to 1.74.

Added

  • The formatter's width, align, and fill are now honored for the single-line hex output.
  • Alternate-form hexdump output: format!("{:#}", bytes.hex()) produces a multiline hexdump -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_dump convenience methods on HexDisplayExt, gated on the alloc
    feature, to produce the hexdump as described above but as a string.
  • Generic HexDisplayExt implementation for any T: AsRef<[u8]> + ?Sized.

Full Changelog

v0.3.2...v0.4.0

v0.3.2

13 May 21:49

Choose a tag to compare

This release comes with a significant performance increase!

Full Changelog: v0.3.1...v0.3.2

v0.3.1

07 May 18:12

Choose a tag to compare

Version bump