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.
-
Instructions
Install Mojo 1.1.0 with pixi, decode a document, generate Mojo from a JSON Schema, and run the tests.
-
Examples
Encode and decode a dynamic
TomlValueand a generated struct. -
Techniques
How this library stores a document, why keys stay in order, and what the local microbench measures.
-
Test data
What lives under
testdata/and which oracle each tree uses.