Skip to content

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.

    Read Why CBOR

  • Instructions


    Install Mojo 1.1.0 with pixi, write a CDDL schema, generate Mojo, run the tests, and publish this site.

    Open Instructions

  • Examples


    Encode and decode generated types, CborValue, sequences, diagnostic notation, and CDE.

    See Examples

  • Test data


    What lives under testdata/ (CDDL, oracle bytes, diagnostic samples) and why each file is there.

    Read Test data