| Crates.io | colored-hexdump |
| lib.rs | colored-hexdump |
| version | 0.2.2 |
| created_at | 2025-05-13 14:28:09.687263+00 |
| updated_at | 2025-05-13 14:51:19.88521+00 |
| description | Create beautifuly colored hexdumps |
| homepage | |
| repository | https://github.com/0xfalafel/colored-hexdump |
| max_upload_size | |
| id | 1671989 |
| size | 550,604 |
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 hexdump = hexdump(&all_bytes);
println!("{}", hexdump);
}
You can also go with a more classic xxd style with 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);
}