Rust (programming language)

term

programming

Kept in this browser · My desk

The memory-safe systems language begun by Graydon Hoare in 2006, sponsored by Mozilla from 2009, whose 1.0 was announced on 15 May 2015; the compiler enforces ownership and borrowing instead of a garbage collector.

Massachusetts Institute of Technology (MIT) Technology Review reported the 2006 start and the 2009 sponsorship; the Rust Foundation was announced in February 2021, and Rust 1.100.0 on 12 November 2026.

What it is. Rust is a compiled systems programming language whose compiler checks memory safety and the absence of data races before a program runs, without a garbage collector. The project's book, The Rust Programming Language, states the three ownership rules on which everything else rests: each value has an owner, there can be only one owner at a time, and when the owner goes out of scope the value is dropped. Memory is released at that point, deterministically, so Rust gives C-level control of layout and lifetime without C's memory errors.

How it works. Ownership moves when a value is assigned or passed to a function, so two variables never both free the same heap allocation. Code that only needs to look at a value borrows a reference instead, and the book's rules of references are the core of the borrow checker: at any given time there can be either one mutable reference or any number of immutable references, and references must always be valid. The first rule lets the compiler refuse data races, which the book describes as undefined behaviour that is hard to diagnose; the second rules out dangling pointers. The Rustonomicon, the project's guide to the low-level parts, describes Rust as two languages in one: Safe Rust, in which a program never endures a dangling pointer, a use-after-free or any other undefined behaviour, and Unsafe Rust, which keeps the same rules but allows a few operations the compiler cannot verify. Unsafe code is fenced in blocks marked unsafe, so a reviewer knows where to look, and the standard library, itself written entirely in Rust, wraps such blocks behind safe interfaces.

Where its ideas came from. Rust's reference says it "is not a particularly original language" and lists its sources: Standard ML (SML) and OCaml for algebraic data types, pattern matching and type inference; C++ for references, RAII (resource acquisition is initialization), smart pointers and move semantics; Cyclone for region-based memory management; Haskell for type classes; Newsqueak for channels and concurrency; Erlang for message passing and lightweight concurrency; Swift for optional bindings; Scheme for hygienic macros; C# for attributes; and Ruby for its closure and block syntax.

Origin. Massachusetts Institute of Technology (MIT) Technology Review told the founding story in February 2023: in 2006 Graydon Hoare, then a 29-year-old programmer working for Mozilla, climbed the stairs to his flat on the 21st floor in Vancouver because the lift's software had crashed, and began a language meant to rule out the memory errors behind such crashes; Mozilla sponsored it from 2009. The Rust Core Team announced Rust 1.0 on 15 May 2015 together with a train-based release model, a new stable version every six weeks, the cadence that reached Rust 1.100.0 on 12 November 2026.

Governance and editions. The language evolves in the open through a Request for Comments (RFC) process: when the Rust Foundation was announced on 8 February 2021, its first post counted more than 1,000 people who had made nearly 500 decisions that way. The founding members were Amazon Web Services (AWS), Huawei, Google, Microsoft and Mozilla, and Mozilla transferred its trademark and infrastructure assets, the crates.io package registry included, to the foundation. Changes that would break old code travel in editions: the Edition Guide explains that Rust 1.0 established "stability without stagnation", that each crate chooses its edition in its Cargo.toml file, that crates of different editions interoperate seamlessly, and that cargo can migrate code automatically, rewriting an identifier named async as r#async when a crate moves to Rust 2018. The current edition, Rust 2024, shipped with Rust 1.85.0 in February 2025.

In practice. Programs are built with cargo, which fetches dependencies, called crates, from crates.io. Google added Rust to the Android platform in Android 12 "as a memory-safe alternative to C/C++"; in December 2022 it reported that about 21 per cent of the new native code in Android 13 was Rust, roughly 1.5 million lines in the Android Open Source Project (AOSP), with zero memory safety vulnerabilities found in that code so far, while memory safety bugs fell from 76 per cent of Android's vulnerabilities in 2019 to 35 per cent in 2022. Its September 2024 update put the share at 24 per cent, said Rust changes are rolled back less than half as often as C++ changes, and recorded a grant of 1,000,000 dollars to the Rust Foundation. Cloudflare built its Pingora proxy in Rust and says it serves more than 1 trillion requests a day with about a third of the central processing unit (CPU) and memory of the system it replaced; the Linux kernel documents Rust support in its own tree.

What goes wrong. Safety stops at logic and at the operating system boundary. On 9 April 2024 the Rust Security Response Working Group (WG) disclosed the flaw catalogued as Common Vulnerabilities and Exposures (CVE) entry CVE-2024-24576: on Windows, the standard library's Command interface did not escape arguments properly when it started batch files with the bat and cmd extensions, so an attacker who controlled the arguments could run arbitrary shell commands. The National Vulnerability Database (NVD) scored it 10.0, critical; Rust 1.77.2 hardened the escaping and made the call fail with an InvalidInput error when an argument cannot be escaped safely. It was an injection flaw, not a memory error, and no type system rules those out. The registry is the other weak point: on 24 September 2025 the crates.io team deleted faster_log and async_println, typosquatted copies of a logging crate published on 25 May 2025 and downloaded 7,181 and 1,243 times, which searched log files for Ethereum and Solana private keys and sent them to the attacker at run time.

Neighbours. Rust replaces the memory model of C and C++ and removes from Safe Rust the bug classes the site files under memory-safety, use-after-free and buffer-overflow; its type system descends from ml-language; Go is the other systems language of its decade, with a garbage collector where Rust has a borrow checker; and its packages share the supply-chain risks of every public registry.

Also known as: rust, rustlang, rustc

Sources

← Back to R Back to the glossary