Skip to content

doc(modules): Remove module style recommendation #1862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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