Rustup is an installer for System Programming Language Rust. If you are running the installer script for yourself, you can take a look at https://github.com/vi/rustup
# curl -sf https://static.rust-lang.org/rustup.sh | sudo sh
But what if you have to install for all users in a Cluster or Shared Environment, how do we do it? Fortunately, we have good information that is found at Installing rustup for all linux users . I took some snipplets from that site
In that article, the author recommends to define RUSTUP_HOME and CARGO_HOME
# export RUSTUP_HOME=/usr/local/rust
# export CARGO_HOME=/usr/local/rust
# curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
The directory should be installed at /usr/local/rust/toolchains/stable-x86_64-unknown-linux-gnu
# ls -l /usr/local/rust/toolchains/stable-x86_64-unknown-linux-gnu
drwxr-xr-x. 2 root root 0 May 6 13:43 bin
drwxr-xr-x. 3 root root 0 May 6 13:42 etc
drwxr-xr-x. 3 root root 0 May 6 13:43 lib
drwxr-xr-x. 2 root root 0 May 6 13:43 libexec
drwxr-xr-x. 5 root root 0 May 6 13:42 share