Crate cbor_macro

Source
Expand description

Macros for entering CBOR in diagnostic notation (EDN) or pretty printed format in Rust source as binary constants

This is useful for test vectors, or when data structures that are handed out do not not depend on runtime data.

Macrosยง

cbo
Create a CBOR slice out of the diagnostic notation (EDN) inside the given string.
cbor
Create a CBOR slice out of diagnostic notation (EDN)
pretty
Create a CBOR slice out of the pretty-printed hexadecimal CBOR
pretty_bytes
Create a slice out of a hex string that uses the convention of pretty CBOR