mojo-cbor¶
mojo-cbor is a CBOR serializer written in Mojo. The runtime and the code generator are Mojo. They do not wrap libcbor or any other C, C++, or Rust CBOR library.
-
Why CBOR
What CBOR is, how the head byte and major types work, and how preferred encoding, CDE, sequences, tags, and diagnostic notation fit together.
-
Instructions
Install Mojo 1.1.0 with pixi, write a CDDL schema, generate Mojo, run the tests, and publish this site.
-
Examples
Encode and decode generated types,
CborValue, sequences, diagnostic notation, and CDE. -
Test data
What lives under
testdata/(CDDL, oracle bytes, diagnostic samples) and why each file is there.