Getting Started with Rust
Welcome to your first lesson in the Rustacean faith!
§Installation
First, you must install the sacred compiler:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
§Your First Program
Behold, the traditional greeting:
fn main() {
println!("Hello, world!");
}
§Core Principles
The Rust faith is built upon three pillars:
- Memory Safety - No null pointer dereferences
- Fearless Concurrency - Data races are prevented at compile time
- Zero-Cost Abstractions - What you don't use, you don't pay for
"The borrow checker is not your enemy, but your guide to enlightenment."
§Next Steps
Continue your journey by exploring ownership and borrowing in the next section.