Advanced Rustup
As demonstrated, rustup is an excellent tool for the general installation of Rust. It can also install a specific version of the Rust environment. This could be advantageous for various reasons, such as product requirements, reproducing problems found in older builds, or maybe developing on a code branch based from an earlier version of Rust. The rustup install version command installs the indicated version of Rust. For example, Rust 1.34.2 is a version from way back in 2019. Assuming this version is required for some reason, rustup can install that specific version, as follows:
$ rustup install 1.34.2
You can also install Rust from one of three channels, as mentioned earlier. The default channel is the stable release. Here is the syntax for Rustup to install Rust from one of the channels.
$ rustup $ rustup install beta $ rustup install nightly
After installation, you can use the rustup self uninstall command to uninstall the Rust environment.
Now that Rust is installed, it’s time for our “Hello, World” application.