1 2 3 4 5 6 7
The installation root is determined, in order of precedence: - `--root` option - `CARGO_INSTALL_ROOT` environment variable - `install.root` Cargo [config value](../reference/config.html) - `CARGO_HOME` environment variable - `$HOME/.cargo`