3 ms·
> As one of the most frequent interactions with Cargo, the question of why the configuration file is named Cargo.toml arises from time to time. The leading capi
by Jtsummers 4y ago
> As one of the most frequent interactions with Cargo, the question of why the configuration file is named Cargo.toml arises from time to time. The leading capital-C was chosen to ensure that the manifest was grouped with other similar configuration files in directory listings. Sorting files often puts capital letters before lowercase letters, ensuring files like Makefile and Cargo.toml are placed together. The trailing .toml was chosen to emphasize the fact that the file is in the TOML configuration format.
https://doc.rust-lang.org/cargo/faq.html https://doc.rust-lang.org/cargo/faq.html
(That was actually my guess, but I figured I'd do a google search and then decided to quote the FAQ.)
- lucasyvas 4y agoIt's wild they actually documented this reasoning! Seems like an easy detail to omit.