Open In App

How to Install Rust Offline?

Last Updated : 30 Aug, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Rust is a general-purpose programming language that is known for its performance, type safety and concurrency, and better memory management. It has a syntax that is much similar to that of C++. Let’s see why we require Rust. Rust has many advantages that make it a better choice as a programming language. Some of which are:

  • High performance with memory safety. 
  • Concurrent programming. 
  • The growing number of Rust packages at crates.io repository. 
  • A vibrant community that contributes to the development of the language.

Install Rust Offline

Follow the steps below for easy installation:

Step 1: Go to this website. Choose 32-bit or 64-bit based on your system.

Choosing-rust-based-on-the-system

 

Step 2: After installation, open the rustup_init.exe and press ‘y’, and at the next step, press 1:

Opening-rust

 

Completing-installation-procedure

 

Step 3: At this point, you will be completed with the installation procedure:

Installation-completed

 

Step 4: Open the command prompt and type ‘cargo –version’ to see the version of rust installed on your system: 

Cargo-version-installed

 

Note:

If you are not able to see the version of rust or a error prompts, then perform the operations again . 

Step 5: Make a rusted file  ‘rust.rs’  and type the following code in it.

Code:

Rust




fn main() {
  
    println!("Hello World!");
}


Output:

Making-rusted-file

 

Hence, we are finished with the installation of Rust on our system in the simplest way possible.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads