rust-lang / rust-lang/rustfmt

[unstable option] `imports_granularity`

Open
#4,991 74 comments 219 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

unstable-option UO-imports_granularity
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
2d 13h
Merged PRs (30d)
24

Description

Tracking issue for unstable option: imports_granularity.

Option documentation.

See Processes.md, "Stabilising an Option":

How can I help?

We all want this feature merged, and it seems easy enough, but (as with many problems in mature software projects) it's not so simple as writing a few lines of code. Please abstain from leaving "how can I get this stabilized" comments.

See @Manishearth's excellent comment below https://github.com/rust-lang/rustfmt/issues/4991#issuecomment-3369792412, up-to-date as of August 2026:

Basically:

  • There are open issues that need work. Some need design discussion.
  • There are open PRs for some of the issues [e.g., #6028 needs to be iterated on further], however the rustfmt team is heavily backlogged on review, and reviews for unstable features are low priority. Community reviews of such PRs are appreciated, but ideally you can get involved on zulip and help the team with other things too.

In general until the rustfmt team is healthy enough to sustain regular maintainance work it is unlikely that we shall see progress on unstable features.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the imports_granularity option documentation and Processes.md, especially “Stabilising an Option.” Review the unchecked blocking issues listed in the tracker, including #6028, #6027, #6666, #6717, #6164, #5296, #6195, and #6241. Done means the outstanding blockers are addressed so the stabilization criteria can be completed.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.