Why does Cargo use toml?

Not at all! Inline table syntax can't extend over multiple lines and it uses = instead of :. Keys aren't quoted either. And an inline table is only valid in a value position. i.e., { key = "value" } on its own isn't a valid TOML document.

Also, arrays are mostly homogeneous. ["a", 1] is illegal.

1 Like