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

Use colored_hexdump::hexdump() to create an hexdump with borders.
use colored_hexdump::hexdump;
fn main() {
let all_bytes: Vec<u8> = (0..=u8::MAX).collect();
let hexdump = hexdump(&all_bytes);
println!("{}", hexdump);
}
xxd
You can also go with a more classic xxd style with colored_hexdump::xxd().

use colored_hexdump::xxd;
fn main() {
let all_bytes: Vec<u8> = (0..=u8::MAX).collect();
let hexdump = xxd(&all_bytes);
println!("{}", hexdump);
}