Posts

Rust program basics | Creating a "Hello, World!" Program on Linux

Image
In this blog post, we are going to see,  Rust program basics creating a hello world program on Linux.  These are the details of the system which we used to create this content.  Here we are going to see, 1.Project directory setup.  2.Create a file for hello world program. 3.Compile and run file.  Project directory setup: In this particular content the meaning for folder and directory is same. Project directory setup helps to keep workspace clean in system (i.e., computer.) First we are going to create a new directory in home called rust_projects. Next inside rust_projects directory we are going to create a new directory called hello_world. So we can also call hello world directory is one of sub-directory of rust_projects directory. Let we start to create this directories using a terminal. Open your terminal and enter the following commands. The commands to create rust_projects directory is  mkdir rust_projects Next let we go to rust_projects directory. The ...

How to install and uninstall standalone rust installer on Linux

Image
 Hi friends, in this blog post we are going to see "how to install and uninstall standalone rust installer on Linux" These are the details of the linux system, which we used to create this content. To whom standalone rust installer will be needed? People who want to install rust offline can use standalone rust installer.  However, note that internet is needed first to download standalone rust installer.  And After that installing rust through standalone rust installer can be done offline.  Install standalone rust installer: In the rust website homepage menu bar, click Install. Next in the Install rust webpage , Click see other installation methods. In the other installation methods webpage , Click Standalone Installer . Scroll down, find, and, download the tar, which is suitable for linux system. unzip/extract downloaded tar file. Now we can see a folder was created with name of the tar. Go into that particular folder/directory. Open a terminal here. Type the command...

Install rust on linux computer through rust up installer

Image
Goto google search,and  type, rust programming language. click the first search result, which has the domain name, rust,hyphen,lang,dot,aarg. It will load the, rust, official website .  In the homepage, click, Get started. It will load the, Get started, web page. Scroll down, and copy the command. In the computer, open a terminal.  Paste the copied  command. Be sure, to have, good internet connection. Now, it will display the details of,  i)what are going to be downloaded,  ii)path details,  iii)installation options and more. Next, i am just going to, select standard installation. So, i am just pressing, Enter button, for standard installation.  Now, it will start to download, and installs rust. It also mentioned to, restart current shell. Restart, helps to update path environment variables, adds, cargo bin directory, and more.  Next, let we check, rust version, using the command, rust see, space, hypen, hypen, version. We are able to see cur...