- Rust - Home
- Rust - Introduction
- Rust - Environment Setup
- Rust - Hello World Example
- Rust - Data Types
- Rust - Variables
- Rust - Constant
- Rust - String
- Rust - Operators
- Rust - Decision Making
- Rust - Loop
- Rust - Functions
- Rust - Tuple
- Rust - Array
- Rust - Ownership
- Rust - Borrowing
- Rust - Slices
- Rust - Structure
- Rust - Enums
- Rust - Modules
- Rust - Collections
- Rust - Error Handling
- Rust - Generic Types
- Rust - Input Output
- Rust - File Input/ Output
- Rust - Package Manager
- Rust - Iterator and Closure
- Rust - Smart Pointers
- Rust - Concurrency
- Rust Useful Resources
- Rust - Quick Guide
- Rust - Useful Resources
- Rust - Discussion
Rust Tutorial
Rust is a modern systems programming language developed by the Mozilla Corporation. It is intended to be a language for highly concurrent and highly secure systems. It compiles to native code; hence, it is blazingly fast like C and C++. This tutorial adopts a simple and practical approach to describe the concepts of Rust programming.
This Rust Tutorial is based on the Latest Rust 1.94.1 version.
Rust Online Compiler
Our Rust tutorial provides various examples to explain different concepts. We have provided Online Rust Compiler. You can Edit and Execute almost all the examples directly from your browser without the need to set up your development environment.
Try to click the icon
to run the following Rust code to print conventional "Hello, World!".
Below code box allows you to change the value of the code. Try to change the value inside print() and run it again to verify the result.
// This is my first Rust program.
// This will print 'Hello, World!' as the output
fn main(){
println!("Hello, World!");
}
Audience
This tutorial has been prepared for beginners to help them understand the basic and advanced concepts of Rust.
Prerequisites
We assume that the reader has an understanding of basic programming concepts is necessary for this course.