Rust
Rust systems programming — memory safety, performance, and modern tooling
Rust delivers memory safety without a garbage collector, making it the language of choice for performance-critical systems, CLI tools, and increasingly, web backends. The 2026 ecosystem has matured significantly — Axum, Tokio, and SQLx cover most backend use cases with excellent ergonomics.
Why Rust in 2026
- Memory safety — no null pointer dereferences, no data races, no use-after-free — caught at compile time
- Performance — comparable to C/C++, significantly faster than Go or Java for CPU-bound work
- WebAssembly — Rust compiles to WASM with better performance than any other language
- AI/ML tooling — Candle (Hugging Face), Burn, and llama.cpp's core are written in Rust
- Growing adoption — Linux kernel, Android, Windows, Chrome all accept Rust code
Quick Start — Axum Web API
use axum::{routing::get, Router, Json};
use serde::Serialize;
#[derive(Serialize)]
struct Health { status: &'static str }
async fn health() -> Json<Health> {
Json(Health { status: "ok" })
}
#[tokio::main]
async fn main() {
let app = Router::new().route("/health", get(health));
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, app).await.unwrap();
}
Learning Path
- Ownership and borrowing — the core mental model, borrow checker intuition
- Error handling —
Result<T, E>,?operator,thiserrorandanyhow - Async Rust —
async/await, Tokio runtime,Arc<Mutex<T>>patterns - Web backends — Axum routing, extractors, middleware, state sharing
- Database access — SQLx async queries, compile-time SQL verification
- Systems topics — unsafe Rust, FFI, SIMD, embedded
no_std
Ecosystem Overview
| Use case | Crate | Alternative |
|---|---|---|
| Async runtime | tokio | async-std |
| Web framework | axum | actix-web |
| HTTP client | reqwest | ureq |
| Database | sqlx | diesel |
| Serialization | serde | — (no real alternative) |
| Error handling | thiserror + anyhow | eyre |
| CLI | clap | argh |
| WASM | wasm-bindgen | wasm-pack |
| Logging | tracing | log |
Showing 151–152 of 152 articles · Page 6 of 6