1 2 3 4 5 6 7 8 9
/// parses hex from cbor.me format pub fn from_cbor_me(text: &str) -> anyhow::Result<Vec<u8>> { let parts = text .split('\n') .filter_map(|x| x.split('#').next()) .flat_map(|x| x.split_whitespace()) .collect::<String>(); Ok(hex::decode(parts)?) }