Rust is a statically and strongly typed systems programming language for writing fast, safe, and concurrent software. Installing Rust is quite easy easy using rustup, which installs a toolchain containing The rustc compiler, cargo, Rust documentation, a copy of The Rust Book and some other utilities. Here is how to install the Rust toolchain on an Ubuntu operating system. The same installation process should apply to macOS and other Unix operating systems.
Run this command in a terminal:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
You will be prompted to choose the type of installation you want:
For starters, choose the default option: 1.
Congrats! You have installed Rust! Wasn't that fun? You should then run the following command to allow your current shell to recognize Rust commands:
You can test that your installation is working by running the following command to check the version of Rust you installed:
You should see your Rust version as thus:
You now have the complete Rust toolchain.
Thank you for reading,
Give me a follow on Twitter to get updated on my new articles, and join my Discord server if you would like to see cool open-source projects i am building with an awesome community of software enthusiasts.
Consider donating, or becoming a sponsor to help me transition into making open-source software, full-time.