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
I am working on a decently sized workspace, and i used to have a crate, i have since deleted it, but its documentation stays around because rustdoc does not seem to delete the folders in target/doc if the actual crate has been deleted. Rustdoc should check if a dependency/crate actually exists before using its cache in the documentation process and delete it if it isn't.
Yup, can confirm thats the case, it works with renaming too
jyn514
changed the title
Rustdoc keeps around documentation for crates in workspaces despite them being deleted
Rustdoc keeps around documentation for crates that have been renamed or deleted
Nov 6, 2020
I'm going to close this in favor of rust-lang/cargo#6783; I don't think rustdoc should be clearing documentation or keep track of state between runs. I'm happy to collaborate with cargo on a fix for this, but I don't think rustdoc can fix it in isolation.
I am working on a decently sized workspace, and i used to have a crate, i have since deleted it, but its documentation stays around because rustdoc does not seem to delete the folders in
target/doc
if the actual crate has been deleted. Rustdoc should check if a dependency/crate actually exists before using its cache in the documentation process and delete it if it isn't.Meta
rustc --version --verbose
:Reproducing
1:
cargo init --lib test
2:
cargo doc
3: rename the crate to anything else in Cargo.toml
4:
cargo doc --open
The text was updated successfully, but these errors were encountered: