Introduction to Rustlers

Rust is one of the modern programming language with enormous number of potenial.

We never got this excited for a programming language, since some of us have been working on rust programming language for over a year now , we decided to start writing this book.

This book is how we started and mastered this language. Rust is one of the very few language which can be used to code in human understandable format. Our motto of this project, is to create awareness of how to master rust language from the ground level

People involved in creating this book are

  • Ghanithan Subramani, Principal Engineer, Astra Technologies
  • Sudharsanan Kirubanandhan, Founder and Dev Coach, Dall.academy
  • Ovia Seshadri, Devrel, OKTO wallet, Coindcx
  • Gyanlakshmi, Devrel, Starknet
  • Vishal Pokuri, Community lead, TPG chennai chapter

Hello World

Every programming language tutorial starts with a Hello World Program. As a classic, We are following the same.

If you have rust already installed in your system then, you can follow these steps. If not, Please follow this link to install rust in your system.

Open your Command prompt/Terminal in your system, follow these steps

mkdir rustlers_rust
cd rustlers_rust

Open the folder in Visual studio code,

What's visual studio code ?

It is a open source Ide from Microsoft, To install you can follow this link

create a new file called Helloworld.rs, .rs is the extension for rust programming language

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

Then open your terminal , the first step is to compile using the rust compiler

rustc Helloworld.rs

and to run the program

./Helloworld

and yes, you have successfully created the first rust program.

In this example, fn main() refers to creation of main function , any rust program will start from this section and we are using a println! macro to print Hello world to the console.