We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef74011 commit 3fdf1fdCopy full SHA for 3fdf1fd
src/docbuilder/caching.rs
@@ -29,6 +29,14 @@ impl ArtifactCache {
29
/// - ...?
30
#[instrument(skip(self))]
31
fn cleanup(&self, target_dir: &Path) -> Result<()> {
32
+ // proc-macro crates have a `doc` directory
33
+ // directly in the target.
34
+ let doc_dir = target_dir.join("doc");
35
+ if doc_dir.is_dir() {
36
+ debug!(?doc_dir, "cache dir cleanup");
37
+ fs::remove_dir_all(doc_dir)?;
38
+ }
39
+
40
for item in fs::read_dir(target_dir)? {
41
// the first level of directories are the targets in most cases,
42
// delete their doc-directories
0 commit comments