Expand description
A crate for parsing data encoded in Concise Binary Object Representation (CBOR) (in any of raw binary, hex encoded (with comments) or diagnostic notation) then printing it out in either annotated hex form or diagnostic notation. While doing so as much of the structured data as possible is retained to improve the debugging experience. The primary intention of this crate is to be used in diagnostic tools working with CBOR data.
Structs§
- Byte
String - A string of raw bytes with no direct attached meaning.
- Simple
- A “simple value” data item.
- Tag
- A semantic tag for a CBOR data item.
- Text
String - A UTF-8 encoded text string.
Enums§
- Data
Item - A CBOR data item.
- Error
- Float
Width - How many additional bytes are used to encode this float (in bits).
- Integer
Width - How many additional bytes are used to encode this integer (in bits).
Functions§
- parse_
bytes - Parse a string containing a binary encoded CBOR data item.
- parse_
bytes_ partial - Parse a string containing a binary encoded CBOR data item, optionally followed by more data.
- parse_
diag - Parse a string containing a diagnostic notation encoded CBOR data item.
- parse_
hex - Parse a string containing a hex encoded CBOR data item.