Search This Blog

Change Rust install location

By default, Rust will be installed to home directory: ~/.cargo and ~/.rustup. To change the location,
  • Set CARGO_HOME and RUSTUP_HOME environment variable before installation
  • Install Rust using rust-init
  • Update PATH environment variable to install $CARGO_HOME/bin



see also

No comments:

Post a Comment