Config `rust-analyzer` to use the new formatting style
Open
@rami3l is already working on this.
Since Sep 11, 2026.
enhancement
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
OTOH to facilitate use in IDEs so that we can never worry about reorganizing imports, I'm discovering the feasibility of adding a recommended
rust-analyzerconfig that looks like so:rustfmt = { extraArgs = { "+nightly", "--config-path=.rustfmt.unstable.toml" } },
Interesting, I cannot use that yet because
rust-analyzeris callingrustfmtat the source file's basedir so.rustfmt.unstable-tomlwill be "not found":
Originally posted by @rami3l in #5065
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.