Skip to content

Conversation

@Mjboothaus
Copy link

Adds mojo-toml v0.5.1 - Native TOML 1.0 parser and writer for Mojo.

Changes from previous PR #193:

  • ✅ Added package image (recipes/mojo-toml/image.png) for builds.modular.com display per reviewer request
  • ✅ Enabled CodeQL scanning and added badge to repository README
  • ✅ Bumped to v0.5.1 to mark this enhanced release

Package features:

  • Complete TOML 1.0 specification support
  • Array of tables [[section]] syntax
  • Alternative number bases (hex, octal, binary)
  • TOML writer with round-trip fidelity
  • 168 comprehensive tests (100% passing)
  • Zero Python dependencies

Repository: https://github.com/DataBooth/mojo-toml
CodeQL: CodeQL

Supersedes #193

Mjboothaus and others added 5 commits January 8, 2026 10:33
Package: mojo-toml v0.3.0

A native TOML 1.0 parser for Mojo with zero Python dependencies.

Features:
- Complete TOML 1.0 syntax support
- 96 comprehensive tests ensuring reliability
- Nested tables, dotted keys, duplicate detection
- Clear error messages with line/column context
- Performance: 26μs for simple parses, 2ms for real files

Repository:
- GitHub: https://github.com/DataBooth/mojo-toml
- Release: https://github.com/DataBooth/mojo-toml/releases/tag/v0.3.0
- License: MIT

Testing:
Package includes test_package.mojo which validates:
- Simple key-value parsing
- Integer and array parsing
- Nested table structures
- Dotted key functionality

All 96 tests pass in the source repository.

Sponsored by DataBooth (https://www.databooth.com.au/posts/mojo)
Updates mojo-toml from v0.3.0 to v0.5.0 with full TOML 1.0 compliance
and partial TOML 1.1 support.

Major changes since v0.3.0:
- Complete TOML 1.0 specification (array-of-tables, alt number bases)
- Partial TOML 1.1 support (\xHH and \e escapes)
- 168 tests (up from 96)
- Comprehensive benchmarking system
- Pre-commit hooks fixed
- TOML writer with round-trip fidelity

Release: https://github.com/DataBooth/mojo-toml/releases/tag/v0.5.0

Co-Authored-By: Warp <agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant