Rust crate to decode and encode hexadecimal.
let hex_string = "1a2b3c"; let data = rhex::decode_hex(&hex_string).unwrap();