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:

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

See also https://internals.rust-lang.org/t/pre-rfc-put-cachedir-tag-into-target/12262/11