-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move ~/.cargo to ~/.cache/cargo? #210
Comments
I'd like to note that Also Windows does not have anything like XDG specification. |
this is #148 |
(Closing as a dupe, thanks for filing!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see that Cargo creates a
.cargo
directory in my home directory, containing git repositories and checkouts of dependencies I use. These files seem "non-essential": if removed, Cargo will just download dependencies again and recreate them.At least Linux, the best practice here seems to be to follow the XDG Base Directory Specification and have these files in
$XDG_CACHE_HOME/cargo
, falling back on~/.cache/cargo
if the variable is not set, empty, or not an absolute path.The text was updated successfully, but these errors were encountered: