Rust (programming language)
termKept 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
- Clive Thompson, MIT Technology Review, 14 February 2023: Graydon Hoare began Rust in 2006; Mozilla sponsored it from 2009 (read 2026-11-23)
- The Rust Core Team, Announcing Rust 1.0, 15 May 2015 (read 2026-11-23)
- The Rust Reference, Influences: SML and OCaml, C++, Cyclone, Haskell, Newsqueak, Erlang, Swift, Scheme, C#, Ruby (read 2026-11-23)
- Rust blog, Releases: Rust 1.100.0 announced 12 November 2026 (read 2026-11-23)
- Google Security Blog, Memory Safe Languages in Android 13, December 2022: Rust supported in the Android platform since Android 12 (read 2026-11-23)
- The Rust Programming Language (the Rust book), 4.1 What Is Ownership? (read 2026-11-23): the three ownership rules, each value has an owner, one owner at a time, the value dropped when the owner goes out of scope; ownership in place of garbage collection
- The Rust Programming Language, 4.2 References and Borrowing (read 2026-11-23): either one mutable reference or any number of immutable references at a time; references must always be valid; data races refused at compile time
- The Rustonomicon, Meet Safe and Unsafe (read 2026-11-23): Rust as Safe Rust and Unsafe Rust; Safe Rust never endures a dangling pointer, a use-after-free or other undefined behaviour; the standard library written entirely in Rust
- The Rust Edition Guide, What are editions? (read 2026-11-23): stability without stagnation since Rust 1.0 in May 2015; backwards-incompatible changes in opt-in editions chosen per crate in Cargo.toml; editions interoperate; cargo migrates async to r#async for Rust 2018
- Rust Security Response WG, Security advisory for the standard library (CVE-2024-24576), 9 April 2024 (read 2026-11-23): batch-file arguments not escaped by the Command API on Windows, arbitrary shell commands; fixed in Rust 1.77.2 with an InvalidInput error; reported by RyotaK
- NIST National Vulnerability Database, CVE-2024-24576, API record (read 2026-11-23): published 9 April 2024; CVSS 3.1 base score 10.0, critical
- Walter Pearce for the crates.io team, crates.io: Malicious crates faster_log and async_println, Rust blog, 24 September 2025 (read 2026-11-23): typosquatted logging crates published 25 May 2025, downloaded 7,181 and 1,243 times, searching log files for Ethereum and Solana private keys; deleted on 24 September 2025
- Rust Foundation, Hello World, 8 February 2021, copy made by the programming languages research the same day (read 2026-11-23): founding members AWS, Huawei, Google, Microsoft and Mozilla; trademark and infrastructure, crates.io included, transferred from Mozilla; more than 1,000 people and nearly 500 decisions through RFCs
- Google Security Blog, Eliminating Memory Safety Vulnerabilities at the Source, September 2024, copy made by the programming languages research the same day (read 2026-11-23): Android memory safety vulnerabilities down from 76 to 24 per cent over six years; Rust rollback rate less than half of C++; a 1,000,000 dollar grant to the Rust Foundation
- Cloudflare blog, How we built Pingora, the proxy that connects Cloudflare to the Internet, September 2022, copy made by the programming languages research the same day (read 2026-11-23): a Rust proxy serving over 1 trillion requests a day with a third of the CPU and memory of the previous one
- The Linux Kernel documentation, Rust, copy made by the programming languages research the same day (read 2026-11-23): documentation related to Rust within the kernel