Explicit version modes
Choose TOML 1.0 or 1.1 for each invocation. Use --toml-version 1.0 for files read by Cargo or other 1.0-only tools.
TOML 1.0 + 1.1 · Rust
Check and format TOML.
Use TomlSmith from Rust, the command line, an editor, or the browser. Each interface supports explicit TOML 1.0 and 1.1 modes.
01 — Measured performance
Direct-CLI cold-start medians; package-manager launchers and wrapper processes are excluded. See TOML 1.1 and all four lanes.
* tomll does not preserve comments or literal styles.
02 — Features
Choose TOML 1.0 or 1.1, then run check, fmt, or parse.
Choose TOML 1.0 or 1.1 for each invocation. Use --toml-version 1.0 for files read by Cargo or other 1.0-only tools.
check reports errors and warnings with source ranges and diagnostic codes.
Formatting preserves comments and literal spellings in covered cases. Documents with parse or semantic errors are not rewritten, and fmt --check checks files without changing them.
parse emits the selected version, validity, and diagnostics as JSON for scripts and tools.
Parse once with Document, then query diagnostics, formatted output, highlights, and decoded values.
Connect an LSP-capable editor, use the VS Code client, or run the browser playground.
03 — Projects
TomlSmith is split across five repositories. Each repository has a separate role.
The Rust library, CLI, and language server, including parsing, diagnostics, formatting, highlighting, and decoded values.
BrowserA browser workbench built with WebAssembly. It runs locally in the tab and does not upload source.
EditorThe VS Code client for tomlsmith-lsp: diagnostics, formatting, semantic highlighting, hover, symbols, and folding.
BenchmarksCold-start CLI measurements for TOML checkers and formatters, with correctness checks before timing.
BrandSource files and exports for the project icon, favicons, editor icon, avatars, and social previews.
JoinRead the contribution guide before opening an issue or pull request. Contributions use the MIT license.
Follow the quick start, or use the browser Playground without installing anything.