Skip to content

Feature request: visual indication of proc-macro transitive dependencies #7854

Open
@inodentry

Description

@inodentry

It would be useful to have a visual indication of which of your crate's (transitive) dependencies are only used at compile time (by proc-macros) and do not contribute to the code of the compiled binary. This would allow easily judging which dependencies of a project actually contribute to code size.

One solution to this problem would be to visually indicate such dependencies with some marker (and maybe also use a different text colour) during the build process and to show a separate number in the total count of dependencies to be built.

There might also be other places in the UI where dependency info is indicated where this can be shown.

Perhaps crates.io could also benefit from such information, to allow easily judging how much a library might contribute to code bloat (count of non-proc-macro deps).and compile time (all deps).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.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