What is TOML used for?+
TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read. It's used in Rust's Cargo.toml, Hugo's config.toml, Python's pyproject.toml, .editorconfig successors, and many modern developer tools.
What is the difference between TOML and YAML?+
TOML uses explicit section headers ([section]) and key=value pairs. YAML uses indentation for hierarchy. TOML is simpler and has fewer edge cases (YAML's indentation sensitivity causes many bugs). TOML is preferred for developer tooling configs.
How do I represent arrays in TOML?+
Inline arrays: tags = ['rust', 'cargo', 'toml']. Array of tables (list of objects) uses double brackets: [[servers]] on each entry. This is the part of TOML syntax that differs most from JSON and YAML.
What does pyproject.toml do?+
pyproject.toml is the standard Python project configuration file (PEP 517/518). It replaces setup.py and setup.cfg, storing project metadata, dependencies, build system configuration, and tool settings (pytest, black, mypy) in one file.