Colored-Hexdump
Create beautifuly colored hexdump in Rust.
Add to your project
Hexdump

Use colored_hexdump::hexdump() to create an hexdump with borders.
use hexdump;
xxd
You can also go with a more classic xxd style with
xxr

use xxd;
Create beautifuly colored hexdump in Rust.
cargo add colored-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 hex_colors = hexdump(&all_bytes);
println!("{}", hex_colors);
}
You can also go with a more classic xxd style with
colored_hexdump::xxr()

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 hex_colors = xxd(&all_bytes);
println!("{}", hex_colors);
}