Hacker News new | ask | show | jobs
by themihai 3048 days ago
Yeah, I guess that's the Rust way. The more options/configurations the better! Simplicity is not on the top list for sure.
2 comments

We 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.

Ok 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?
That'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.
Using default == Simplicity. You don't have to use the options.