You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! I'm going to close as a duplicate of #12266. Unfortunately, cargo does not have the ability to detect the set of files involved with rustdoc. We would need rustdoc to gain the ability to emit a dep-info file to know which files are involved. Currently cargo can only check files in the package's directory and assume any one of them could affect the documentation.
Problem
When running
cargo doc
incrementally on a project with a parent[lib]
path:edits to files are not detected, ending up in a previous doc version.
Steps
See https://github.com/Vrixyz/cargo_parent_path.
cargo doc --open
.Output is:
Run again
cargo doc --open
.Output is:
But should be the same as before.
Possible Solution(s)
No response
Notes
My current workaround is to run
cargo clean
(with-p package
in bigger projects to avoid too expensive recompilation.This bug had been present for a long time (I don´t believe that's a regression).
I detected this while working on https://github.com/dimforge/parry and similar crates.
Version
The text was updated successfully, but these errors were encountered: