| Crates.io | hexify |
| lib.rs | hexify |
| version | 0.0.3 |
| created_at | 2024-09-22 18:47:57.095283+00 |
| updated_at | 2024-09-28 12:57:17.303039+00 |
| description | Format hex |
| homepage | |
| repository | https://github.com/nimble-rust/nimble |
| max_upload_size | |
| id | 1383202 |
| size | 16,196 |
hexify is a Rust library for formatting octet slices [u8] into hexadecimal strings. It provides utilities to
convert octets into easily readable hex strings with additional features for comparison and assertions.
Add hexify to your Cargo.toml:
[dependencies]
hexify = "^0.0.1"
use hexify::format_hex;
fn main() {
let data = [0x42, 0xA4, 0xAE, 0x09, 0xAF, 0x00, 0x01, 0x00, 0x00, 0x04, 0x03, 0x00, 0x00];
let output = format_hex(&data);
println!("{}", output); // Outputs: 42 A4 AE 09 AF 00 01 00 00 04 03 00 00
}
[u8] slices into uppercase, space-separated hex strings.This project is licensed under the MIT License. See the LICENSE file for more details.