Skip to content

Very long iterative compile times for cargo doc on workspaces with many crates #82845

Open
@alice-i-cecile

Description

@alice-i-cecile

I'm attempting to update the docs of Bevy, a relatively large Rust crate.

Building the docs using cargo doc initially takes about 90s. Rebuilding the docs using cargo doc without making any changes takes less than a second. Making any change to the doc strings within even a single file (e.g. Entity) seems to cause each subcrate to be redocumented, taking another 90s.

This obviously makes it quite challenging to check how my changes are displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions