IssueRaiser

Use OS-native config, cache home directories

*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/cargo/issues/1734)* Maintainer's notes: - A [Pre-RFC](https://internals.rust-lang.org/t/pre-rfc-split-cargo-home/19747) has been started that splits out the first half of t his work (making the paths configurable) to have a smaller, more focused conversation Related issues: - #8684 --- For Linux-like systems, we should be using XDG. See [arch's wiki](https://wiki.archlinux.org/index.php/XDG_Base_Directory_support) for a non-exhaustive list of software with varying degrees of compliance. For Windows, everything should go in ~/appdata/locallow or ~/appdata/local,since ~/.cargo is just a cache, AFAICT. This is `FOLDERID_LocalAppData` for `SHGetKnownFolderPath`, `CSIDL_LOCAL_APPDATA` for `SHGetFolderPath`, and `%LOCALAPPDATA%` in the environment.

Posted by Earnestly on Jun 19, 2015, 5:43 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.6,000 issues0 comments

github (SaaS)

Use OS-native config, cache home directories

EarnestlyJun 19, 2015, 5:43 PM

*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/cargo/issues/1734)* Maintainer's notes: - A [Pre-RFC](https://internals.rust-lang.org/t/pre-rfc-split-cargo-home/19747) has been started that splits out the first half of t his work (making the paths configurable) to have a smaller, more focused conversation Related issues: - #8684 --- For Linux-like systems, we should be using XDG. See [arch's wiki](https://wiki.archlinux.org/index.php/XDG_Base_Directory_support) for a non-exhaustive list of software with varying degrees of compliance. For Windows, everything should go in ~/appdata/locallow or ~/appdata/local,since ~/.cargo is just a cache, AFAICT. This is `FOLDERID_LocalAppData` for `SHGetKnownFolderPath`, `CSIDL_LOCAL_APPDATA` for `SHGetFolderPath`, and `%LOCALAPPDATA%` in the environment.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue