Rust is a systems programming language that runs blazingly fast, prevents almost all crashes, and guarantees thread safety.
Developed by Mozilla Research, Rust combines low-level performance control with high-level language convenience.
Rust empowers millions of developers to build reliable and efficient software.
Rust's ownership system with compile-time borrowing checks ensures memory and thread safety without a garbage collector.
fn main() {
println!("Hello, world!");
}
struct Person {
name: String,
age: u32,
}
impl Person {
fn new(name: String, age: u32) -> Person {
Person { name, age }
}
fn greet(&self) {
println!("Hello, my name is {} and I am {} years old.", self.name, self.age);
}
}
| Resource | Description | Link |
|---|---|---|
| The Rust Programming Language Book | Official Rust book | Read Online |
| Rust by Example | Learn Rust through examples | Open |
| Rustlings | Small exercises to learn Rust | GitHub |