rust Top

Do you use mod.rs, the module name, or does it vary? How do you decide?

I started off avoiding mod.rs because it’s the old way and I prefer having the module name as the filename. However, if the module needs a folder for submodules anyway, then there’s a reason to tuck it away as mod.rs, especially if not doing so leaves lots of duplicate names (a.rs, b.rs, c.rs, …, a/, b/, c/)....

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • ngwrru68w68
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • kavyap
  • megavids
  • anitta
  • khanakhh
  • GTA5RPClips
  • cisconetworking
  • InstantRegret
  • ethstaker
  • osvaldo12
  • tester
  • provamag3
  • modclub
  • cubers
  • normalnudes
  • JUstTest
  • All magazines