feat: rustdoc depinfo rebuild detection via -Zrustdoc-depinfo by weihanglo · Pull Request #15359 · rust-lang/cargo (original) (raw)

What does this PR try to resolve?

This leverages the unstable --emit=depinfo option from rustdoc,
so that rustdoc invocation rebuild can be better tracked
without traversing the entire directory.

Some design decisions made in the current implementation:

How should we test and review this PR?

The tests added has covered these cases:

Additional information

Fixes #12266
Closes #15205