Skip to content

cargo-tree: Compress feature nodes #8108

Open
@ehuss

Description

@ehuss

With the -e features flag, the list of features can be somewhat noisy. It might be useful to compress the display so that features that have only one incoming edge from another feature could be combined with others of the same. For example:

├── syn feature "derive"
│   └── syn feature "default" (*)
├── syn feature "parsing"
│   └── syn feature "default" (*)
├── syn feature "printing"
│   └── syn feature "default" (*)
├── syn feature "proc-macro"
│   └── syn feature "default" (*)

could be displayed as:

├── syn feature "derive", "parsing", "printing", "proc-macro"
│   └── syn feature "default" (*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-treeS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions