Skip to content

Conversation

ranger-ross
Copy link

I was having a conversation about Rust modules with one of my coworkers who is relatively new to Rust.
They mentioned that using foo/mod.rs is not recommended in the Rust reference which surprised me.

Even in modern Rust, I still find the foo/mod.rs style much more common than using the "newer" style of adding foo.rs and adding a foo/ directory.

I think its worth removing this recommendation from the reference to make it unopinionated and avoid confusing newcomers.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jun 17, 2025
@ehuss
Copy link
Contributor

ehuss commented Jun 17, 2025

We recently revisited this here and decided to keep the existing text.

@ranger-ross
Copy link
Author

Ah I see, given this has already been discussed, closing.

@ranger-ross ranger-ross deleted the remove-module-note branch June 18, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: The marked PR is awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants