colored-hexdump

Crates.iocolored-hexdump
lib.rscolored-hexdump
version0.2.2
created_at2025-05-13 14:28:09.687263+00
updated_at2025-05-13 14:51:19.88521+00
descriptionCreate beautifuly colored hexdumps
homepage
repositoryhttps://github.com/0xfalafel/colored-hexdump
max_upload_size
id1671989
size550,604
Lasne Olivier (0xfalafel)

documentation

README

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);
}
Commit count: 33

cargo fmt