`rustfmt::nowrap` attribute to disable all width constraints
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 24
Description
Some code or data can look substantially easier to read if not wrapped due to width constraints. For instance, a series of asserts in a test may align better if not wrapped.
rustfmt::skip allows fully manual formatting, but then rustfmt doesn't help with places that would always have newlines even without a width constraint.
Please consider adding a rustfmt::nowrap attribute, which disables width constraints within the code the attribute applies to, but still otherwise formats the code.
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.
Research direction
No files, tests, or entry points are named in the issue. Start by reviewing how rustfmt::skip and width constraints currently behave, then define the attribute's scope and expected formatting; done means width wrapping is disabled within that scope while other rustfmt formatting remains active.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100