It seems that the default behavior of Cargo when searching for its configuration directory is to look in the current user\'s home directory (~/.cargo on my syst
~/.cargo
The default location can be changed by means of the environment variable $CARGO_HOME, it overrides the default location which is $HOME/.cargo.
$CARGO_HOME
$HOME/.cargo