Can Cargo use Cache Directory Tagging Specification

I regularly run into the issue of providing all temp directories that are created by cargo to be excluded while running a tar command.

Is it a good idea for cargo to emit something like Cache Directory Tagging Specification based on configuration to indicate set of directories that can be safely excluded during "archiving" process if user desires so.

2 Likes

Lack of support for system-standard cache directories is a known issue:

https://github.com/rust-lang/cargo/issues/1734

Thanks you for the response. Let me follow the PR you mentioned.

See also [Pre-RFC] Put CACHEDIR.TAG into target/ - #11 by kornel - cargo - Rust Internals

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.