Skip to content
Related Articles

Related Articles

Improve Article
How to Install Rust on Windows and Linux Operating System?
  • Last Updated : 22 Mar, 2021

Rust is a blazing fast and memory-efficient static compiled language with a rich type system and ownership model. It can be used to power performance-critical services while guaranteeing memory-safety and thread-safety, empowering developers to debug at compile-time. In addition to that Rust has great documentation and a user-friendly compiler with top-end tools like integrated package managers and multi-editor with features like type inspection and auto-completion. Rust prevents all the crashes, and it is very interesting that rust is safe by default like JavaScript, Ruby, and Python. This is much powerful than C/C++ because we cannot write the wrong parallel code you can never see fault in rust. It is very fast in representing a lot of programming paradigms very well. 

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 

Cargo is a package manager for rust like npm or yarn.

Congratulations You have successfully installed Rust in your system.

My Personal Notes arrow_drop_up
Recommended Articles
Page :