In this article, we have explained the steps needed to install Rust compiler (rustc) and other essential tools to run Rust code. We have presented the steps for both Linux variants (like Ubuntu) and Windows.
Table of contents:
- Install Rust on Linux
- Install Rust on Windows
Install Rust on Linux
Install Rust on Linux / Ubuntu as follows:
curl https://sh.rustup.rs -sSf | sh
The above command will download rustup-init.sh file on your system and run it which will install all essential Rust tools include rustc which is the Rust compiler.
Rustup is a tool that manages Rust toolchains across various platforms and helps download and run the correct installation files directly.
Install Rust on Windows
To install Rust on Windows, download rustup-init.exe file at following URL:
Once downloaded, double click the rustup-init.exe file and all Rust tools will be installed.
With this article at OpenGenus, you must have a complete idea of how to install Rust on your system. Enjoy.