The style team has been discussing new style/code formatting guidelines for Rust (On the fmt-rfc repo). I’ve been implementing many of these changes in Rustfmt (although there is a lot of work still to do there). I’d like to get feedback on the new style, especially where it differs from what we currently use in the Rust repo.
If you want to try this yourself, you need to build your own Rustfmt from master to get the latest version. You can then use the
rfc-rustfmt.toml config file (renamed to
rustfmt.toml) to use the new guidelines on your project. Note that this is currently work in progress - formatting of items such as types and function signatures should be good, but expressions and statements are a bit hit and miss.
Let me know what you think here, or open issues/leave comments on the fmt-rfcs repo.