-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Decide if CARGO_HOME is truly cache or not #10252
Copy link
Copy link
Open
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-bugCategory: bugCategory: bugS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Metadata
Metadata
Assignees
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-bugCategory: bugCategory: bugS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
$CARGO_HOME(or~/.cargo) is commonly described as just a cache. If it's a cache, it should be fine to delete it and exclude it from backups. If I delete~/.cargo/bin, however, commands will stop working.From reference/environment-variables.md:
From guide/cargo-home.md:
Possible Solution(s)
CARGO_HOMEis cache, non-cache content should be stored elsewhereCARGO_HOMEis not cache, update the documentation and decide where the cache actually should be stored so it can be easily and safely deleted or excluded from backups