How do you organize Rust modules?

View other answers to this thread
Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more

j's photo

I currently use the old structure for all my projects. personally the isolation that every module is one folder to me makes more sense. on the other hand having n mod files isn't that explicit either esp. if you have some shared logic for the specific module.

It's a tough one, I stick with the old one till I see a valid reason to switch besides eventual naming collisions. Which is weird since in other languages I always would try to avoid it ....

Not much help I guess :) Maybe I am missing something else Marco Alka what do you think?