pretty_bytes!() { /* proc-macro */ }Expand description
Create a slice out of a hex string that uses the convention of pretty CBOR
Unlike pretty!(), this does not check whether the data is valid CBOR, and returns a slice
instead.
The function is essentially equivalent to the hex-literal crate’s hex! macro, but allows
comments in the style of CBOR’s pretty printing.
const PACKET: &'static [u8] = pretty_bytes!(r#"
ff 63 48 8a 60 # application dependent header
65 # text(5)
68656C6C6F # "hello"
"#);