Rust has moved firmly into the mainstream: it’s in the Linux kernel, in major browsers, and increasingly the default choice for new CLI tools and systems software. If you’ve been meaning to learn it, here’s a practical on-ramp that skips the theory-heavy detours.
Install Rust with rustup
Never install Rust from your distro’s package manager if you can help it — rustup is the official toolchain manager and makes updating trivial:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source "$HOME/.cargo/env" rustc --version cargo --version # Keep it updated rustup update
Your First Project
cargo new file_watcher cd file_watcher cargo run
A Practical Example: A Tiny File Watcher
Rather than “Hello World”, here’s something closer to real systems code — a minimal file-change watcher using the notify crate, which demonstrates ownership, error handling with Result, and pattern matching in one small program.
[dependencies] notify = "6.1"
use notify::{RecursiveMode, Watcher, recommended_watcher};
use std::sync::mpsc::channel;
use std::path::Path;
use std::time::Duration;
fn main() -> notify::Result<()> {
let (tx, rx) = channel();
let mut watcher = recommended_watcher(move |res| {
tx.send(res).unwrap();
})?;
watcher.watch(Path::new("."), RecursiveMode::Recursive)?;
println!("Watching current directory for changes...");
loop {
match rx.recv_timeout(Duration::from_secs(30)) {
Ok(Ok(event)) => println!("Change detected: {:?}", event),
Ok(Err(e)) => eprintln!("Watch error: {:?}", e),
Err(_) => println!("No changes in the last 30s"),
}
}
}
Why Rust for Systems Work in 2026
- Memory safety without a garbage collector — the borrow checker eliminates entire classes of bugs (use-after-free, data races) at compile time.
- Excellent tooling —
cargo,clippy, andrustfmtare built in and genuinely pleasant to use, unlike a lot of C/C++ tooling. - Cross-compilation is easy — building a Linux binary from Windows (or vice versa) is a one-line
cargo build --targetaway with the right toolchain installed. - Growing ecosystem for AI tooling — inference engines like
candleand tokenizer libraries used by Hugging Face are written in Rust for performance.
Next Steps
Work through the free official book (“The Rust Programming Language”), then build something you’d actually use — a CLI tool, a small HTTP service with axum, or a Discord bot with serenity. Rust rewards building real things far more than it rewards tutorials.