Cargo: Windows: Cargo should put files in ~/appdata, not directly in ~/

Created on 9 Sep 2015  路  5Comments  路  Source: rust-lang/cargo

In particular, 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.

A-configuration

Most helpful comment

There has still been no movement on this front. The RFC is still open and the relevant teams still are unsure of themselves. Several implementations have popped up over time, and they've all been closed for various reasons.

All 5 comments

cc #1734, a similar ish issue for linux

A practical reason for doing this is to avoid having automated backup/sync software backup/sync the .cargo directory.

cargo-script already does this, using this code. Feel free to steal :)

Disclaimer on the function:

This is _not_ chosen to match the location where Cargo places its cache data, because Cargo is _wrong_. This is at least _less wrong_.

As there hasn't been any activity here in a while would someone (the author, a team member, or any interested party) be able to summarise the current state, perhaps making explicit:

  • Is this still relevant?
  • If so, what is blocking it?
  • Is it known what could be done to help move this forward?

Thank you!

(The cargo team is currently evaluating the use of Stale bot, and using #6035 as the tracking issue to gather feedback.)

If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable!

There has still been no movement on this front. The RFC is still open and the relevant teams still are unsure of themselves. Several implementations have popped up over time, and they've all been closed for various reasons.

Was this page helpful?
0 / 5 - 0 ratings