Skip to content

Cargo Tree HTML Output #15473

Open
Open
@HughKaznowskiCoralogix

Description

@HughKaznowskiCoralogix

Problem

When trying to trace version incompatibilities and resolutions across various dependencies, I currently need to scroll a lot of cargo tree output.

I would find it useful, if the output would be in HTML, allowing to click-to-expand various dependency sub-trees.

Proposed Solution

cargo tree --output=html would spit out an HTML file, either to standard output or some other env/CLI variable with a default.

Cargo would then open the file in the browser displaying a dependency tree that can be interacted with (hidden/shown selectively. This behaviour would resemble the cargo-flamegraphs crate.

Notes

As long as this is approved, then I am happy to give this a go.

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-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions