I am installing racer, rustfmt & rustsym
cargo install racer
cargo install rustfmt
cargo install rustsym
The packages are being installed in C:\Users\<UserName>\.cargo
, but I want it to be C:\Rust\.cargo
.
I am installing racer, rustfmt & rustsym
cargo install racer
cargo install rustfmt
cargo install rustsym
The packages are being installed in C:\Users\<UserName>\.cargo
, but I want it to be C:\Rust\.cargo
.
The easiest way is via --root
:
cargo install --root C:\Rust.cargo racer
CARGO_HOME
and others can be set to override this too. Consult the documentation or How can the location of cargo's configuration directory be overridden?.