Skip to content

How should group_imports handle visibility? #6861

@camsteffen

Description

@camsteffen
  1. What should be the default behavior with how imports are grouped by visibility?
    1. Should pub items be sorted differently at all?
    2. Should pub(<visibility>) be sorted differently than pub?
    3. Sort by visibility then by name or just by name? What about pub(in a::b)?
    4. Should pub(<visibility>) cause more blank-line-separated groups? (e.g. a pub group and a pub(crate) group, etc.) or just one group for all pub items?
  2. What config options should be available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageThis issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions