Tsallaka zuwa abun ciki
Justice Tech School

Rust Introduction

Rust is a systems language that gives C like speed with memory safety and no garbage collector. The compiler checks ownership rules so whole classes of bugs cannot happen. It is used in browsers, operating systems and web services.

Example
fn main() {
    println!("Hello, Rust!");
}

Result

Hello, Rust!
  • Fragments below omit fn main. Wrap them to run.

Exercise

Which macro prints a line?

!("Hi");

Quiz Test

What does Rust avoid with ownership?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.