TOML stands for Tom's Obvious Minimal Language. It is an alternative to INI files and YAML and JSON files.
The toml crate allows us to read TOML files.
Every Rust Crate comes with a file called Cargo.toml
which, surprise, surprise, is in this format. So you, a Rust developer, are probably quite familiar with this format.
- Read rustfmt.toml TOML file. A simple example.
- Read and parse the Cargo.toml manifes file of a Rust crate using the
cargo_toml
crate. - Read and parse Cargo.toml using the toml crate defining our own structs using the
toml
crate andserde
.