The installation root is determined, in order of precedence:
--root
CARGO_INSTALL_ROOT
install.root
CARGO_HOME
$HOME/.cargo