The installation root is determined, in order of precedence:
-
--root
option -
CARGO_INSTALL_ROOT
environment variable -
install.root
Cargo linkcargo:reference/config.html[config value] -
CARGO_HOME
environment variable -
$HOME/.cargo
The installation root is determined, in order of precedence:
--root
option
CARGO_INSTALL_ROOT
environment variable
install.root
Cargo linkcargo:reference/config.html[config value]
CARGO_HOME
environment variable
$HOME/.cargo