How to Install Rust on Windows and Linux Operating System?
In this article, we will look into the process of installing Rust in your system.
Rust Installation on UNIX System
To install Rust in a Unix system like Linux or macOS use the below command in the terminal:
$ curl https://sh.rustup.rs -sSf | sh
The above command will download a script to install Rust on your system and after everything goes well, you’ll get the following message on the terminal:
Rust is installed now. Great!
At this stage, you have successfully installed Rust programming language in your system.
Rust Installation on Windows System:
To install the Rust programming language on a Windows system follow the below steps:
- Step 2: After downloading click on the setup which is downloaded. It will take you to the command prompt as shown below. From this command prompt, you can install rust and make changes.
- Step 3: Now to install Rust, Rust package manager cargo, Rust compiler, Rust c, and Rust toolchain, enter “Y” in the command prompt. It will also create a new path rust home on your system.
- Step 4: Here we will be using the default option for all, so we press “1” and hit enter. Now it will start downloading the rust components. After the installation is complete press Enter.
You can use the below command to see all the commands that you can use:
Cargo is a package manager for rust like npm or yarn.
Congratulations You have successfully installed Rust in your system.