Rust

wiki bookmarks lang dev compsci

Rust is a modern, general-purpose systems programming language designed for high performance, memory safety, and safe concurrency. Originally created by Graydon Hoare in 2006 and later sponsored by Mozilla, it is widely used to build reliable, resource-efficient software without relying on a garbage collector.

Core Features

  • Memory safety without garbage collection. Rust uses a compile-time system of ownership, borrowing, and lifetimes—enforced by its “borrow checker”—to prevent null pointer dereferences, buffer overflows, and dangling pointers without runtime overhead.
  • Fearless concurrency. The same ownership rules prevent data races at compile time, making it safer to write multi-threaded code.
  • Zero-cost abstractions. High-level features like iterators, traits, and pattern matching compile down to low-level machine code as fast as hand-written C or C++.
  • Rich type system. Rust replaces null and traditional exceptions with explicit Option and Result enums, forcing developers to handle missing values and errors safely.

Built-in Tooling

Rust ships with an integrated suite of developer tools managed via Rustup:

  • Cargo. The official build system and package manager used to compile code, run tests, and manage dependencies from crates.io.
  • Clippy. A linter that catches common mistakes and suggests idiomatic improvements.
  • Rustfmt. An automatic code formatter that enforces consistent style across projects.
  • Rust Analyzer. An IDE language server providing real-time code completion, type hints, and inline compiler diagnostics.

Common Use Cases

  • Systems & Operating Systems. Adopted as the second official language in the Linux kernel and used for embedded devices and file systems.
  • Web & Cloud Infrastructure. Powers high-throughput backend services, networking tools, and serverless functions at companies like AWS, Cloudflare, Discord, and Microsoft.
  • WebAssembly (Wasm). Compiles cleanly to Wasm for near-native performance inside web browsers.
  • Command-Line & Developer Tools. Popular for fast CLI utilities, compilers, and AI/ML tooling infrastructure.

Getting Started

You can experiment with Rust directly in your browser using the Rust Playground, or follow the interactive chapters in the official Rust Programming Language Book.

Learning

  • [[Rust Fundamentals Pluralsight]]

Youtube Playlists / Courses