3 ms·
Yeah, I guess that's the Rust way. The more options/configurations the better! Simplicity is not on the top list for sure.
by themihai 9y ago
Yeah, I guess that's the Rust way. The more options/configurations the better! Simplicity is not on the top list for sure.
- sgift 9y agoUsing default == Simplicity. You don't have to use the options.
- steveklabnik 9y agoWe have a strong culture of convention over configuration; these two things are not inherently at odds. To get the default formatting with rustfmt, you just run it. You can configure it via some file but I've never needed to. I don't even know what the options are.
- themihai 9y agoOk so what happens if I contribute to a open source project with my default fmt configuration if that project doesn't use the default configuration? Will people yell at me to "fix" the formatting?
- steveklabnik 9y agoThat'd depend on the project, but even then, you'd just run `cargo fmt` and be done with it. That project would have a rustfmt.toml in the repo, so it would just make the changes for you.