You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contributing to many different Rust projects, of which some use rustfmt and some don't. Therefore I configured my editor to only execute cargo fmt when it finds a .rustfmt.toml or a rustfmt.toml file in the workspace or the project, otherwise it would increase size of simple diffs, making it difficult to spot the actual code change.
Proposed solution
I propose to add either a .rustfmt.toml or a rustfmt.toml file (no hard feelings which of these would be better), even if it is empty in the beginning, in order to indicate to developers that the project uses rustfmt and allow automatic formatting by editors which depend on its presence.
The text was updated successfully, but these errors were encountered:
2982: Add a `rustfmt.toml` file to the repository r=epilys a=silwol
Closes: #2934
<!--
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests
-->
# Description
Add a `rustfmt.toml` file to the repository, indicating to developers and tools that we use `rustfmt`. For now, it just contains a comment explaining what the file is for, and that the comment itself can be removed in case real settings are added.
# Review
- [ ] Add a short description of the change to the CHANGELOG.md file
Co-authored-by: Wolfgang Silbermayr <[email protected]>
Motivation
Contributing to many different Rust projects, of which some use
rustfmt
and some don't. Therefore I configured my editor to only executecargo fmt
when it finds a.rustfmt.toml
or arustfmt.toml
file in the workspace or the project, otherwise it would increase size of simple diffs, making it difficult to spot the actual code change.Proposed solution
I propose to add either a
.rustfmt.toml
or arustfmt.toml
file (no hard feelings which of these would be better), even if it is empty in the beginning, in order to indicate to developers that the project usesrustfmt
and allow automatic formatting by editors which depend on its presence.The text was updated successfully, but these errors were encountered: