Skip to content

TOML Conformance

Lanexio Parser supports both TOML v1.0.0 and v1.1.0 through a single package. The conformance suite validates valid input acceptance, invalid input rejection, the official toml-test corpus, a generated fuzz corpus, and real-world TOML documents (over 2,000 test files total).

All tests pass across six categories:

  • Official toml-test valid — 268 files, version-routed by spec-1.0.0 / spec-1.1.0
  • Official toml-test invalid — 509 files, version-routed by spec-1.0.0 / spec-1.1.0
  • Inline fixtures — curated valid/invalid coverage for all TOML features
  • Generated corpus — fuzz-generated inputs, all parse safely
  • Real-world documents — production TOML configs, all parse without error
  • Cross-version fixtures — TOML 1.1.0 constructs rejected in 1.0.0 mode (\xHH escapes, seconds-less times, inline table newlines/trailing commas)

parseToml(bytes) defaults to TOML v1.1.0. Use parseToml10(bytes) or parseToml11(bytes) for an explicit version. Incompatible constructs between versions are handled by the version-aware parser.

AxisResult
never-throw0 throws across full corpus
well-formedcorpus WF = 0
losslesscorpus lossless = 0, byte-exact round-trip
conformance2,000+ / 2,000+