2 linked guides. Start at part 1 or open the chapter that matches your question.
Comparing TOML, JSON and YAML for configuration—readability, comments, data types and failure modes—so you can pick the right format and convert between them.
A plain-English guide to TOML—tables, arrays of tables, typed values and dates—with the syntax you actually meet in Cargo.toml and pyproject.toml.