tomlsmith 0.4.1

A lossless, error-tolerant TOML toolchain
Documentation

tomlsmith

tomlsmith is the lossless, error-tolerant language core behind the TomlSmith TOML toolchain. It supports strict TOML 1.0 and 1.1 parsing, diagnostics, decoded values, source-backed highlighting, and guarded formatting through an immutable Document snapshot.

use tomlsmith::{Document, TomlVersion};

let document = Document::parse_as("title = \"TomlSmith\"\n", TomlVersion::V1_1);
assert!(document.diagnostics().is_empty());
assert_eq!(document.text(), "title = \"TomlSmith\"\n");

Document::highlights returns source-backed classifications for values and structure, including distinct variants for regular tables, arrays of tables, scalar keys, array-valued keys, and inline-table-valued keys.

See the TomlSmith repository for the CLI, language server, conformance scope, and support policy.