-
Notifications
You must be signed in to change notification settings - Fork 896
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
Allow a wildcard *.rs that can be used to format all .rs file in that directory and it's subdirectories #2426
Comments
On a second thought, Formatting all So, A |
Oh, Just found out about the |
Rustfmt formats programs rather than files. If you format lib.rs/main.rs, it will format all files in the library/application. |
Tracking these through issues is better. Also, `rustfmt` only needs to be called on top-level files (see rust-lang/rustfmt#2426). It does need to be called on every example, though, as those count as top-level files. Mention that signed GPG commits are preferred. Tree-SHA512: 5e4a308e71a6dd437a93f337820eb817185c235bb2796bcf28d91e1e45f91cbce5dc7e305e7adc7ee96c4292ab91fa89eb932a0b0007f98191740a9d15ddb03f
And how about workspaces? |
Sometimes, I want to run rustfmt on all source files in a directory. There is a
*
wildcard that can be used but it also tries to formattoml
and any other files in the directory.I think, There should be a
*.rs
wildcard that formats all Rust source files in the specified directory and also any rust files in the subdirectories of specified directory.The text was updated successfully, but these errors were encountered: