Skip to content

Provide better diagnostics for why crates are rebuilt #2904

@alexcrichton

Description

@alexcrichton

Right now Cargo can sometimes choose to recompile crates for surprising reasons, but it has lots of information internally to inform users as to why crates are recompiling. It'd be great to expose all this information!

Currently the best way to get this information is:

CARGO_LOG=cargo::core::compiler::fingerprint=trace cargo build

but then you have to wade through a bunch of other logging output. It'd be best if cargo would automatically do this on -v. Something like "recompiling crate foo because: ...". Maybe even -vv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-new-subcommandArea: new subcommandA-rebuild-detectionArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-reportS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    Status

    Big Projects, no backers

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions