Skip to content

mojo-toml

mojo-toml is a TOML 1.1 serializer written in Mojo. The runtime and the code generator are Mojo. They do not wrap tomli, toml-rs, or any other C, C++, or Rust TOML library.

  • Why TOML


    What a TOML document is, which types it has, and how tables, arrays of tables, and inline tables fit together.

    Read Why TOML

  • Instructions


    Install Mojo 1.1.0 with pixi, decode a document, generate Mojo from a JSON Schema, and run the tests.

    Open Instructions

  • Examples


    Encode and decode a dynamic TomlValue and a generated struct.

    See Examples

  • Techniques


    How this library stores a document, why keys stay in order, and what the local microbench measures.

    Read Techniques

  • Test data


    What lives under testdata/ and which oracle each tree uses.

    Read Test data