colored-hexdump 0.2.2

Create beautifuly colored hexdumps
Documentation
  • Coverage
  • 22.22%
    2 out of 9 items documented0 out of 5 items with examples
  • Size
  • Source code size: 550.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 266.85 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • 0xfalafel/colored-hexdump
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 0xfalafel

Colored-Hexdump

Create beautifuly colored hexdump in Rust.

Add to your project

cargo add colored-hexdump

Hexdump

colored_hexdump::hexdump()

Use colored_hexdump::hexdump() to create an hexdump with borders.

use colored_hexdump::hexdump;

fn main() {
    // All possible bytes
    let all_bytes: Vec<u8> = (0..=u8::MAX).collect();

    // Create hexdump, and print it to stdout
    let hexdump = hexdump(&all_bytes);
    println!("{}", hexdump);
}

xxd

You can also go with a more classic xxd style with colored_hexdump::xxd().

colored_hexdump::xxd()

use colored_hexdump::xxd;

fn main() {
    // All possible bytes
    let all_bytes: Vec<u8> = (0..=u8::MAX).collect();

    // Create hexdump, and print it to stdout
    let hexdump = xxd(&all_bytes);
    println!("{}", hexdump);
}