24
Do you use mod.rs, the module name, or does it vary? How do you decide?
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
For a moment in time, I rather disliked
mod.rs
files.Then my editor got an update to show the folder name in tabs, when two files were named the same.
Now I am using
mod.rs
in my own code bases, because I want all related files in one place. ¯\_(ツ)_/¯