Issues:
Benefits
Questions / concerns
Proposals
.cargo
if existcargo dirs
subcommand to get the dirs$CARGO_HOME/bin
, $CARGO_HOME/.crates.toml
, $CARGO_HOME/.crates2.json
$CARGO_CONFIG_DIR/git
$CARGO_CONFIG_DIR/registry
$CARGO_CONFIG_DIR/config.toml
$CARGO_HOME/credentials
?
.config
git repo and could accidentally leak their credentialshome
to support thesehome
crate will provide new functions that map to old locationsCARGO_*_DIR
not being setCARGO_*_DIR
is set, use that$CARGO_HOME/config.toml
and $CARGO_CONFIG_DIR/config.toml
(if different)CARGO_CACHE_DIR
since users shouldn't be as free to delete this as CARGO_CACHE_DIR
CARGO_*_DIR
is set, use thatcargo --print config-dir --print cache-dir
for programmatic lookup
rustc --print <item>
cargo config get
cargo dirs
or cargo home