3 ms·
I really enjoyed how this spanned from nitpicks/taste to things that have more depth. I laughed at how the author noticed Cargo.toml was unusually capitalized
by lucasyvas 4y ago
I really enjoyed how this spanned from nitpicks/taste to things that have more depth.
I laughed at how the author noticed Cargo.toml was unusually capitalized - something you can likely notice consistently after burning it into your eye for years.
- 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.
- baq 4y agoit's only unusual if you never write Dockerfiles or Makefiles...