]> git.proxmox.com Git - cargo.git/commit
Exclude the target directory from backups using CACHEDIR.TAG
authorJakub Stasiak <jakub@stasiak.at>
Thu, 18 Jun 2020 11:43:41 +0000 (13:43 +0200)
committerJakub Stasiak <jakub@stasiak.at>
Thu, 18 Jun 2020 11:43:41 +0000 (13:43 +0200)
commitcc5011866d2d5fc7f02d9af88a0251b18ce62486
treed64dff0c2958c1da88072bd9e238cb020e9be0ba
parent089cbb80b73ba242efdcf5430e89f63fa3b5328d
Exclude the target directory from backups using CACHEDIR.TAG

This patch follows the lead of #4386 (which excludes target directories
from Time Machine backups) and is motived by the same reasons listen
in #3884. CACHEDIR.TAG is an OS-independent mechanism supported by Borg,
restic, GNU Tar and other backup/archiving solutions.

See https://bford.info/cachedir/ for more information about the
specification. This has been discussed in Rust Internals earlier this
year[1] and it seems like it's an uncontroversial improvement so I went
ahead with the patch.

[1] https://internals.rust-lang.org/t/pre-rfc-put-cachedir-tag-into-target/12262/11
src/cargo/core/compiler/layout.rs