Rust (programming language) explained

Rust
Logo Alt:Rust logo; a capital letter R set into a sprocket
Designer:Graydon Hoare
Developer:The Rust Team
Programming Language:OCaml (2006–2011)
Rust (2012–present)
Platform:Cross-platform
Operating System:Cross-platform
License:MIT, Apache 2.0
File Ext:.rs, .rlib

Rust is a general-purpose programming language emphasizing performance, type safety, and concurrency. It enforces memory safety, meaning that all references point to valid memory. It does so without a traditional garbage collector; instead, memory safety errors and data races are prevented by the "borrow checker", which tracks the object lifetime of references at compile time.

Rust does not enforce a programming paradigm, but was influenced by ideas from functional programming, including immutability, higher-order functions, algebraic data types, and pattern matching. It also supports object-oriented programming via structs, enums, traits, and methods. It is popular for systems programming.[1] [2]

Software developer Graydon Hoare created Rust as a personal project while working at Mozilla Research in 2006. Mozilla officially sponsored the project in 2009. In the years following the first stable release in May 2015, Rust was adopted by companies including Amazon, Discord, Dropbox, Google (Alphabet), Meta, and Microsoft. In December 2022, it became the first language other than C and assembly to be supported in the development of the Linux kernel.[3]

Rust has been noted for its rapid adoption, and has been studied in programming language theory research.

History

Early years (2006–2009)

Rust began as a personal project in 2006 by Mozilla employee Graydon Hoare.[4] Hoare has stated that Rust was named for the group of fungi that are "over-engineered for survival".[4] During the time period between 2006 and 2009, Rust was not publicized to others at Mozilla and was written in Hoare's free time;[5] Hoare began speaking about the language around 2009 after a small group at Mozilla became interested in the project.[6] Hoare emphasized prioritizing good ideas from old languages over new development, citing languages including CLU (1974), BETA (1975), Mesa (1977), NIL (1981), Erlang (1987), Newsqueak (1988), Napier (1988), Hermes (1990), Sather (1990), Alef (1992), and Limbo (1996) as influences, stating "many older languages [are] better than new ones", and describing the language as "technology from the past come to save the future from itself."[5] [6] Early Rust developer Manish Goregaokar similarly described Rust as being based on "mostly decades-old research."[4]

During the early years, the Rust compiler was written in about 38,000 lines of OCaml.[5] [7] Early Rust contained features such as explicit object-oriented programming via an keyword (later removed), and a system for something called typestates that would allow variables of a type to be tracked along with state changes (such as going from uninitialized to initialized). Functions were pure by default, meaning that side effects (such as reading or writing to a file) were not allowed without an explicit annotation.[5]

Mozilla sponsorship (2009–2012)

Mozilla officially sponsored the Rust project in 2009.[4] Brendan Eich and other executives, intrigued by the possibility of using Rust for a safe web browser engine, placed engineers on the project including Patrick Walton, Niko Matsakis, Felix Klock, and Manish Goregaokar. A conference room taken by the project developers was dubbed "the nerd cave," with a sign placed outside the door.[4]

During this time period, work had shifted from the initial OCaml compiler to a self-hosting compiler, i.e., written in Rust, based on LLVM.[8] The Rust ownership system was also in place by 2010.[4] The Rust logo was developed in 2011 based on a bicycle chainring.[9]

The first public release, Rust 0.1 was released in January 2012.[8] The early 2010s saw increasing involvement from open source volunteers outside of Mozilla and outside of the United States. At Mozilla, executives would eventually employ over a dozen engineers to work on Rust full time over the next decade.[4]

Evolution (2012–2015)

The years from 2012 to 2015 were marked by substantial changes to the Rust type system, especially, removal of the typestate system, consolidation of other language features, and the removal of the garbage collector.[5] [4] Memory management through the ownership system was gradually consolidated and expanded to prevent memory-related bugs. By 2013, the garbage collector feature was rarely used, and was removed by the team in favor of the ownership system.[4] Other changes during this time included the removal of pure functions, which were declared by an explicit annotation, in March 2013.[10] Specialized syntax support for channels and various pointer types were removed to simplify the language.[5]

Rust's expansion and consolidation was influenced by developers coming from C++ (e.g., low-level performance of features), scripting languages (e.g., Cargo and package management), and functional programming (e.g., type systems development).[5]

Graydon Hoare stepped down from Rust in 2013.[4] This allowed it to evolve organically under a more federated governance structure, with a "core team" of initially 6 people, 30-40 developers total across various other teams, and a Request for Comments (RFC) process for new language features added in March 2014.[5] The core team would grow to 9 people by 2016 with over 1600 proposed RFCs.[5]

In January 2014, the editor-in-chief of Dr. Dobb's Journal, Andrew Binstock, commented on Rust's chances of becoming a competitor to C++, along with D, Go, and Nim (then Nimrod). According to Binstock, while Rust was "widely viewed as a remarkably elegant language", adoption slowed because it radically changed from version to version.[11] Rust development at this time was focused on finalizing the language features and moving towards 1.0 so it could achieve backward compatibility and productize the language for potential industry adoption.[5]

Six years after Mozilla sponsored its development, the first stable release, Rust 1.0, was published on May 15, 2015.[4] A year after the release, the Rust compiler had accumulated over 1,400 contributors and there were over 5,000 third-party libraries published on the Rust package management website Crates.io.[5]

Servo and early adoption (2015–2020)

The development of the Servo browser engine continued in parallel with Rust, jointly funded by Mozilla and Samsung.[12] The teams behind the two projects worked in close collaboration; new features in Rust were tested out by the Servo team, and new features in Servo were used to give feedback back to the Rust team.[5] The first version of Servo was released in 2016.[4] The Firefox web browser shipped with Rust code as of 2016 (version 45);[5] [13], but components of Servo did not appear in Firefox until September 2017 (version 57) as part of the Gecko and Quantum projects.[14]

Improvements were made to the Rust toolchain ecosystem during the years following 1.0 including Rustfmt, integrated development environment integration, a regular compiler testing and release cycle, a community code of conduct, and community discussion organized through an IRC chat.[5]

The earliest adoption outside of Mozilla was by individual projects at Samsung, Facebook (now Meta Platforms), Dropbox, and others including Tilde, Inc. (the company behind ember.js).[5] [4] Amazon Web Services followed in 2020.[4] Engineers cited performance, lack of a garbage collector, safety, and pleasantness of working in the language as reasons for the adoption, while acknowledging that it was a risky bet as Rust was new technology. Amazon developers cited the fact that Rust uses half as much electricity as similar code written in Java, behind only C,[4] as found by a study at the University of Minho, NOVA University Lisbon, and the University of Coimbra.[15]

Mozilla layoffs and Rust Foundation (2020–present)

In August 2020, Mozilla laid off 250 of its 1,000 employees worldwide, as part of a corporate restructuring caused by the COVID-19 pandemic.[16] [17] The team behind Servo was disbanded. The event raised concerns about the future of Rust, due to the overlap between the two projects.[18] In the following week, the Rust Core Team acknowledged the severe impact of the layoffs and announced that plans for a Rust foundation were underway. The first goal of the foundation would be to take ownership of all trademarks and domain names, and take financial responsibility for their costs.[19]

On February 8, 2021, the formation of the Rust Foundation was announced by five founding companies: Amazon Web Services, Google, Huawei, Microsoft, and Mozilla.[20] [21] The foundation, led by Shane Miller for its first two years, offered $20,000 grants and other support for programmers working on major Rust features.[4] In a blog post published on April 6, 2021, Google announced support for Rust within the Android Open Source Project as an alternative to C/C++.[22]

On November 22, 2021, the Moderation Team, which was responsible for enforcing the community code of conduct, announced their resignation "in protest of the Core Team placing themselves unaccountable to anyone but themselves".[23] In May 2022, the Rust Core Team, other lead programmers, and certain members of the Rust Foundation board implemented governance reforms in response to the incident.[24]

The Rust Foundation posted a draft for a new trademark policy on April 6, 2023, including rules for how the Rust logo and name can be used, which resulted in negative reactions from Rust users and contributors.[25]

Syntax and features

Rust's syntax is similar to that of C and C++,[26] although many of its features were influenced by functional programming languages such as OCaml. Hoare has described Rust as targeted at frustrated C++ developers and emphasized features such as safety, control of memory layout, and concurrency.[6] Safety in Rust includes the guarantees of memory safety, type safety, and lack of data races.

Hello World program

Below is a "Hello, World!" program in Rust. The keyword denotes a function, and the macro (see) prints the message to standard output. Statements in Rust are separated by semicolons.fn main

Variables

Variables in Rust are defined through the keyword. The example below assigns a value to the variable with name .

fn main

Variables are immutable by default, and adding the keyword allows the variable to be mutated. The following example uses, which denotes the start of a comment.

fn main

Multiple expressions can define multiple variables with the same name, known as variable shadowing. Variable shadowing allows transforming variables without having to name the variables differently. The example below declares a new variable with the same name that is double the original value:

fn main

Variable shadowing is also possible for values of different types, going from a string to its length:

fn main

Keywords and control flow

In Rust, blocks of code are delimited by curly brackets.

blocks

An conditional expression executes code based on whether the given value is . can be used for when the value evaluates to, and can be used for combining multiple expressions.

fn main

loops

[[While loop|while]] can be used to repeat a block of code while a condition is met.

fn main

loops and iterators

For loops in Rust loop over elements of a collection."For" expressions work over any iterator type.

fn main

In the above code, 4..=10 is a value of type Range which implements the Iterator trait. The code within the curly braces is applied to each element returned by the iterator.

Iterators can be combined with functions over iterators like map, filter, and sum. For example, the following adds up all numbers between 1 and 100 that are multiples of 3:

(1..=100).filter(|&x| x % 3

0).sum

and statements

More generally, the keyword allows repeating a portion of code until a occurs. may optionally exit the loop with a value. Labels denoted with can be used to break an outer loop when loops are nested.

fn main

Expressions

Rust is expression-oriented, with nearly every part of a function body being an expression, including control-flow operators. The if expression is used to provide the ternary conditional operator. With returns being implicit, a function does not need to end with a return expression; if the semicolon is omitted, the value of the last expression in the function is used as the return value,[27] as seen in the following recursive implementation of the factorial function:

fn factorial(i: u64) -> u64

The following iterative implementation uses the ..= operator to create an inclusive range:

fn factorial(i: u64) -> u64

Pattern matching

The and expressions can be used for pattern matching. For example, can be used to double an optional integer value if present, and return zero otherwise:

fn double(x: Option) -> u64

Equivalently, this can be written with and :

fn double(x: Option) -> u64

Types

Rust is strongly typed and statically typed. The types of all variables must be known at compilation time; assigning a value of a particular type to a differently typed variable causes a compilation error. Type inference is used to determine the type of variables if unspecified.

The default integer type is, and the default floating point type is . If the type of a literal number is not explicitly provided, either it is inferred from the context or the default type is used.

Primitive types

Integer types in Rust are named based on the signedness and the number of bits the type takes. For example, is a signed integer that takes 32 bits of storage, whereas is unsigned and only takes 8 bits of storage. and take storage depending on the architecture of the computer that runs the code, for example, on computers with 32-bit architectures, both types will take up 32 bits of space.

By default, integer literals are in base-10, but different radices are supported with prefixes, for example, for binary numbers, for octals, and for hexadecimals. By default, integer literals default to as its type. Suffixes such as can be used to explicitly set the type of a literal. Byte literals such as are available to represent the ASCII value (in) of a specific character.

The Boolean type is referred to as which can take a value of either or . A takes up 32 bits of space and represents a Unicode scalar value: a Unicode codepoint that is not a surrogate.[28] IEEE 754 floating point numbers are supported with for single precision floats and for double precision floats.

User-defined types

User-defined types are created with the struct or enum keywords. The struct keyword is used to denote a record type that groups multiple related values. enums can take on different variants at runtime, with its capabilities similar to algebraic data types found in functional programming languages. Both structs and enums can contain fields with different types. Alternative names for the same type can be defined with the type keyword.

The impl keyword can define methods for a user-defined type. Data and functions are defined separately. Implementations fulfill a role similar to that of classes within other languages.

Standard library

Summary of Rust's types in the standard library!Type!Description!Examples
UTF-8-encoded strings (dynamic)
      Platform-native strings[29] (borrowed[30] and dynamic[31])
          Paths (borrowed[32] and dynamic[33])
              C-compatible, null-terminated strings (borrowed[34] and dynamic)
                Dynamic arrays
                  Option type
                    Error handling using a result type
                      A pointer to a heap-allocated value.[35] Similar to C++'s std::unique_ptr.let boxed: Box = Box::new(5);let val: u8 = *boxed;
                      Reference counting pointer[36] let five = Rc::new(5);let also_five = five.clone;
                      Atomic, thread-safe reference counting pointer[37] let foo = Arc::new(vec![1.0, 2.0]);let a = foo.clone; // a can be sent to another thread
                      A mutable memory location[38] let c = Cell::new(5);c.set(10);
                      Mutex<T>A mutex lock for shared data contained within.[39] let mutex = Mutex::new(0_u32);let _guard = mutex.lock;
                      Readers–writer lock[40] let lock = RwLock::new(5);let r1 = lock.read.unwrap;
                      A conditional monitor for shared data[41] let (lock, cvar) = (Mutex::new(true), Condvar::new);// As long as the value inside the `Mutex` is `true`, we wait.let _guard = cvar.wait_while(lock.lock.unwrap, pending).unwrap;

                      Type that represents a span of time[42] Duration::from_millis(1) // 1ms
                      Hash table[43] let mut player_stats = HashMap::new;player_stats.insert("damage", 1);player_stats.entry("health").or_insert(100);
                      B-tree[44] let mut solar_distance = BTreeMap::from([("Mercury", 0.4), ("Venus", 0.7), ]);solar_distance.entry("Earth").or_insert(1.0);

                      Option values are handled using syntactic sugar, such as the if let construction, to access the inner value (in this case, a string):

                      fn main

                      Pointers

                      Summary of Rust's pointer and reference primitive types!Type!Description!Examples
                        References (immutable and mutable)
                            • Option wrapped reference
                            • Possibly null reference
                              A pointer to heap-allocated value(or possibly null pointer if wrapped in option)

                              Rust does not use null pointers to indicate a lack of data, as doing so can lead to null dereferencing. Accordingly, the basic & and &mut references are guaranteed to not be null. Rust instead uses Option for this purpose: Some(T) indicates that a value is present, and None is analogous to the null pointer. Option implements a "null pointer optimization", avoiding any spatial overhead for types that cannot have a null value (references or the NonZero types, for example).[45]

                              Unlike references, the raw pointer types *const and *mut may be null; however, it is impossible to dereference them unless the code is explicitly declared unsafe through the use of an unsafe block. Unlike dereferencing, the creation of raw pointers is allowed inside of safe Rust code.

                              Type conversion

                              Ownership

                              Rust's ownership system consists of rules that ensure memory safety without using a garbage collector. At compile time, each value must be attached to a variable called the owner of that value, and every value must have exactly one owner. Values are moved between different owners through assignment or passing a value as a function parameter. Values can also be borrowed, meaning they are temporarily passed to a different function before being returned to the owner. With these rules, Rust can prevent the creation and use of dangling pointers:

                              fn print_string(s: String)

                              fn main

                              Because of these ownership rules, Rust types are known as linear or affine types, meaning each value can be used exactly once. This enforces a form of software fault isolation as the owner of a value is solely responsible for its correctness and deallocation.[46]

                              When a value goes out of scope, it is dropped by running its destructor. The destructor may be programmatically defined through implementing the trait. This helps manage resources such as file handles, network sockets, and locks, since when objects are dropped, the resources associated with them are closed or released automatically.

                              Lifetimes

                              Object lifetime refers to the period of time during which a reference is valid; that is, the time between the object creation and destruction.[47] These lifetimes are implicitly associated with all Rust reference types. While often inferred, they can also be indicated explicitly with named lifetime parameters (often denoted,, and so on).[48]

                              Lifetimes in Rust can be thought of as lexically scoped, meaning that the duration of an object lifetime is inferred from the set of locations in the source code (i.e., function, line, and column numbers) for which a variable is valid. For example, a reference to a local variable has a lifetime corresponding to the block it is defined in:

                              fn main // ------------------+

                              The borrow checker in the Rust compiler then enforces that references are only used in the locations of the source code where the associated lifetime is valid.[49] In the example above, storing a reference to variable in is valid, as variable has a longer lifetime than variable . However, when has a shorter lifetime, the borrow checker would reject the program:

                              fn main // ------------------+

                              Since the lifetime of the referenced variable is shorter than the lifetime of the variable holding the reference, the borrow checker errors, preventing from being used from outside its scope.

                              Lifetimes can be indicated using explicit lifetime parameters on function arguments. For example, the following code specifies that the reference returned by the function has the same lifetime as (and not necessarily the same lifetime as):

                              fn remove_prefix<'a>(mut original: &'a str, prefix: &str) -> &'a str

                              When user-defined types hold references to data, they also need to use lifetime parameters. The example below parses some configuration options from a string and creates a struct containing the options. The function parse_config also showcases lifetime elision, which reduces the need for explicitly defining lifetime parameters.

                              use std::collections::HashMap;

                              // This struct has one lifetime parameter, 'src. The name is only used within the struct's definition.

                              1. [derive(Debug)]

                              struct Config<'src>

                              // The '_ lifetime parameter, in this case, refers to the anonymous lifetime attached to the type// of the argument `config`.fn parse_config(config: &str) -> Config<'_>

                              fn main

                              In the compiler, ownership and lifetimes work together to prevent memory safety issues such as dangling pointers.[50]

                              Polymorphism

                              Generics

                              Rust's more advanced features include the use of generic functions. A generic function is given generic parameters, which allow the same function to be applied to different variable types. This capability reduces duplicate code and is known as parametric polymorphism.

                              The following program calculates the sum of two things, for which addition is implemented using a generic function:

                              use std::ops::Add;

                              // sum is a generic function with one type parameter, Tfn sum(num1: T, num2: T) -> Twhere T: Add, // T must implement the Add trait where addition returns another T

                              fn main

                              At compile time, polymorphic functions like sum are instantiated with the specific types the code requires; in this case, sum of integers and sum of floats.

                              Generics can be used in functions to allow implementing a behavior for different types without repeating the same code. Generic functions can be written in relation to other generics, without knowing the actual type.

                              Traits

                              Rust's type system supports a mechanism called traits, inspired by type classes in the Haskell language, to define shared behavior between different types. For example, the Add trait can be implemented for floats and integers, which can be added; and the Display or Debug traits can be implemented for any type that can be converted to a string. Traits can be used to provide a set of common behavior for different types without knowing the actual type. This facility is known as ad hoc polymorphism.

                              Generic functions can constrain the generic type to implement a particular trait or traits; for example, an add_one function might require the type to implement Add. This means that a generic function can be type-checked as soon as it is defined. The implementation of generics is similar to the typical implementation of C++ templates: a separate copy of the code is generated for each instantiation. This is called monomorphization and contrasts with the type erasure scheme typically used in Java and Haskell. Type erasure is also available via the keyword dyn (short for dynamic). Because monomorphization duplicates the code for each type used, it can result in more optimized code for specific-use cases, but compile time and size of the output binary are also increased.

                              In addition to defining methods for a user-defined type, the impl keyword can be used to implement a trait for a type. Traits can provide additional derived methods when implemented. For example, the trait Iterator requires that the next method be defined for the type. Once the next method is defined, the trait can provide common functional helper methods over the iterator, such as map or filter.

                              Trait objects

                              Rust traits are implemented using static dispatch, meaning that the type of all values is known at compile time; however, Rust also uses a feature known as trait objects to accomplish dynamic dispatch (also known as duck typing).[51] Dynamically dispatched trait objects are declared using the syntax dyn Tr where Tr is a trait. Trait objects are dynamically sized, therefore they must be put behind a pointer, such as Box. The following example creates a list of objects where each object can be printed out using the Display trait:

                              use std::fmt::Display;

                              let v: Vec> = vec![Box::new(3), Box::new(5.0), Box::new("hi"), ];

                              for x in v

                              If an element in the list does not implement the Display trait, it will cause a compile-time error.

                              Memory safety

                              Rust is designed to be memory safe. It does not permit null pointers, dangling pointers, or data races.[52] [53] [54] Data values can be initialized only through a fixed set of forms, all of which require their inputs to be already initialized.[55]

                              Unsafe code can subvert some of these restrictions, using the unsafe keyword. Unsafe code may also be used for low-level functionality, such as volatile memory access, architecture-specific intrinsics, type punning, and inline assembly.

                              Memory management

                              Rust does not use garbage collection. Memory and other resources are instead managed through the "resource acquisition is initialization" convention,[56] with optional reference counting. Rust provides deterministic management of resources, with very low overhead.[57] Values are allocated on the stack by default, and all dynamic allocations must be explicit.[58]

                              The built-in reference types using the & symbol do not involve run-time reference counting. The safety and validity of the underlying pointers is verified at compile time, preventing dangling pointers and other forms of undefined behavior. Rust's type system separates shared, immutable references of the form &T from unique, mutable references of the form &mut T. A mutable reference can be coerced to an immutable reference, but not vice versa.

                              Macros

                              It is possible to extend the Rust language using macros.

                              Declarative macros

                              A declarative macro (also called a "macro by example") is a macro, defined using the macro_rules! keyword, that uses pattern matching to determine its expansion.[59] An example is the println! macro.[60]

                              Procedural macros

                              Procedural macros are Rust functions that run and modify the compiler's input token stream, before any other components are compiled. They are generally more flexible than declarative macros, but are more difficult to maintain due to their complexity.[61]

                              Procedural macros come in three flavors:

                              The rsx! macro in the Dioxus front-end framework is an example of a function-like macro.[62] [63] Theserde_derive macro[64] provides a commonly used library for generating codefor reading and writing data in many formats, such as JSON. Attribute macros are commonly used for language bindings, such as the extendr library for Rust bindings to R.[65]

                              The following code shows the use of the Serialize, Deserialize, and Debug-derived procedural macrosto implement JSON reading and writing, as well as the ability to format a structure for debugging.use serde::;

                              1. [derive(Serialize, Deserialize, Debug)]

                              struct Point

                              fn main

                              Variadic macros

                              Interface with C and C++

                              Rust has a foreign function interface (FFI) that can be used both to call code written in languages such as C from Rust and to call Rust code from those languages., an external library called CXX exists for calling to or from C++.[66] Rust and C differ in how they lay out structs in memory, so Rust structs may be given a #[repr(C)] attribute, forcing the same layout as the equivalent C struct.[67]

                              Ecosystem

                              The Rust ecosystem includes its compiler, its standard library, and additional components for software development. Component installation is typically managed by, a Rust toolchain installer developed by the Rust project.

                              Compiler

                              The Rust compiler,, translates Rust code into low-level LLVM IR. LLVM is then invoked as a subcomponent to apply optimizations and translate the resulting IR into object code. A linker is then used to combine the objects into a single executable image or binary file.[68]

                              Other than LLVM, the compiler also supports using alternative backends such as GCC and Cranelift for code generation.[69] The intention of those alternative backends is to increase platform coverage of Rust or to improve compilation times.[70] [71]

                              Standard library

                              The Rust standard library defines and implements many widely used custom data types, including core data structures such as,, and, as well as smart pointer types. Rust also provides a way to exclude most of the standard library using the attribute ; this enables applications, such as embedded devices, which want to remove dependency code or provide their own core data structures. Internally, the standard library is divided into three parts,,, and, where and are excluded by .

                              Cargo

                              Cargo is Rust's build system and package manager. It downloads, compiles, distributes, and uploads packages—called crates—that are maintained in an official registry. It also acts as a front-end for Clippy and other Rust components.[72]

                              By default, Cargo sources its dependencies from the user-contributed registry crates.io, but Git repositories and crates in the local filesystem, and other external sources can also be specified as dependencies.[73]

                              Rustfmt

                              Rustfmt is a code formatter for Rust. It formats whitespace and indentation to produce code in accordance with a common style, unless otherwise specified. It can be invoked as a standalone program, or from a Rust project through Cargo.

                              Clippy

                              Clippy is Rust's built-in linting tool to improve the correctness, performance, and readability of Rust code., it has more than 700 rules.[74]

                              Versioning system

                              Following Rust 1.0, new features are developed in nightly versions which are released daily. During each six-week release cycle, changes to nightly versions are released to beta, while changes from the previous beta version are released to a new stable version.

                              Every two or three years, a new "edition" is produced. Editions are released to allow making limited breaking changes, such as promoting to a keyword to support async/await features. Crates targeting different editions can interoperate with each other, so a crate can upgrade to a new edition even if its callers or its dependencies still target older editions. Migration to a new edition can be assisted with automated tooling.

                              IDE support

                              rust-analyzer is a collection of utilities that provides Integrated development environments (IDEs) and text editors with information about a Rust project through the Language Server Protocol. This enables features including autocompletion, and the display of compilation errors while editing.

                              Performance

                              In general, Rust's memory safety guarantees do not impose a runtime overhead. A notable exception is array indexing which is checked at runtime, though this often does not impact performance.[75] Since it does not perform garbage collection, Rust is often faster than other memory-safe languages.[76] [77]

                              Rust provides two "modes": safe and unsafe. Safe mode is the "normal" one, in which most Rust is written. In unsafe mode, the developer is responsible for the code's memory safety, which is used by developers for cases where the compiler is too restrictive.[78]

                              Many of Rust's features are so-called zero-cost abstractions, meaning they are optimized away at compile time and incur no runtime penalty. The ownership and borrowing system permits zero-copy implementations for some performance-sensitive tasks, such as parsing.[79] Static dispatch is used by default to eliminate method calls, with the exception of methods called on dynamic trait objects. The compiler also uses inline expansion to eliminate function calls and statically-dispatched method invocations.[80]

                              Since Rust utilizes LLVM, any performance improvements in LLVM also carry over to Rust.[81] Unlike C and C++, Rust allows for reordering struct and enum elements[82] to reduce the sizes of structures in memory, for better memory alignment, and to improve cache access efficiency.[83]

                              Adoption

                              Rust is used in software across different domains. Components from the Servo browser engine (funded by Mozilla and Samsung) were incorporated in the Gecko browser engine underlying Firefox.[84] In January 2023, Google (Alphabet) announced support for using third party Rust libraries in Chromium.[85] [86]

                              Rust is used in several backend software projects of large web services. OpenDNS, a DNS resolution service owned by Cisco, uses Rust internally.[87] [88] Amazon Web Services uses Rust in "performance-sensitive components" of its several services. In 2019, AWS open-sourced Firecracker, a virtualization solution primarily written in Rust.[89] Microsoft Azure IoT Edge, a platform used to run Azure services on IoT devices, has components implemented in Rust.[90] Microsoft also uses Rust to run containerized modules with WebAssembly and Kubernetes.[91] Cloudflare, a company providing content delivery network services, used Rust to build a new web proxy named Pingora for increased performance and efficiency.[92] The npm package manager used Rust for its production authentication service in 2019.[93]

                              In operating systems, the Rust for Linux project, launched in 2020, merged initial support into the Linux kernel version 6.1 in late 2022.[94] [95] The project is active with a team of 6-7 developers, and has added additional Rust code with kernel releases from 2022 to 2024,[96] aiming to demonstrate the minimum viability of the project and resolve key compatibility blockers.[94] [97] The first drivers written in Rust were merged into the kernel for version 6.8.[94] The Android developers used Rust in 2021 to rewrite existing components.[98] [99] Microsoft has rewritten parts of Windows in Rust.[100] The r9 project aims to re-implement Plan 9 from Bell Labs in Rust.[101] Rust has been used in the development of new operating systems such as Redox, a "Unix-like" operating system and microkernel,[102] Theseus, an experimental operating system with modular state management,[103] [104] and most of Fuchsia.[105] Rust is also used for command-line tools and operating system components, including stratisd, a file system manager[106] [107] and COSMIC, a desktop environment by System76.[108]

                              In web development, Deno, a secure runtime for JavaScript and TypeScript, is built on top of V8 using Rust and Tokio.[109] Other notable adoptions in this space include Ruffle, an open-source SWF emulator,[110] and Polkadot, an open source blockchain and cryptocurrency platform.[111]

                              Discord, an instant messaging software company, rewrote parts of its system in Rust for increased performance in 2020. In the same year, Dropbox announced that its file synchronization had been rewritten in Rust. Facebook (Meta) used Rust to redesign its system that manages source code for internal projects.

                              In the 2024 Stack Overflow Developer Survey, 12.6% of respondents had recently done extensive development in Rust.[112] The survey named Rust the "most admired programming language" every year from 2016 to 2024 (inclusive), based on the number of existing developers interested in continuing to work in the same language.[113] In 2024, Rust was the 6th "most wanted technology", with 28.7% of developers not currently working in Rust expressing an interest in doing so.

                              In academic research

                              Rust has been studied in academic research, both for properties of the language itself as well as the utility the language provides for writing software used for research. Its features around safety[114] [78] and performance[115] have been examined.

                              In a journal article published to Proceedings of the International Astronomical Union, astrophysicists Blanco-Cuaresma and Bolmont re-implemented programs responsible for simulating multi-planet systems in Rust, and found it to be a competitive programming language for its "speed and accuracy".[2] Likewise, an article published on Nature shared several stories of bioinformaticians using Rust for its performance and safety.[72] However, both articles have cited Rust's unique concepts, including its ownership system, being difficult to learn as one of the main drawbacks to adopting Rust.

                              Community

                              Rust has been noted as having an inclusive community, and particularly welcomed people from the queer community, partly due to its code of conduct which outlined a set of expectations for Rust community members to follow. One MIT Technology Review article described the Rust community as "unusually friendly" to newcomers.[4] [72]

                              Rust Foundation

                              Rust Foundation
                              Type:Nonprofit organization
                              Location Country:United States
                              Leader Title:Chairperson
                              Leader Name:Shane Miller
                              Leader Title2:Executive Director
                              Leader Name2:Rebecca Rumbul

                              The Rust Foundation is a non-profit membership organization incorporated in United States, with the primary purposes of backing the technical project as a legal entity and helping to manage the trademark and infrastructure assets.[116] [117]

                              It was established on February 8, 2021, with five founding corporate members (Amazon Web Services, Huawei, Google, Microsoft, and Mozilla).[118] The foundation's board is chaired by Shane Miller.[119] Starting in late 2021, its Executive Director and CEO is Rebecca Rumbul.[120] Prior to this, Ashley Williams was interim executive director.

                              Governance teams

                              The Rust project is composed of teams that are responsible for different subareas of the development. The compiler team develops, manages, and optimizes compiler internals; and the language team designs new language features and helps implement them. The Rust project website lists 6 top-level teams .[121] Representatives among teams form the Leadership council, which oversees the Rust project as a whole.[122]

                              See also

                              References

                              Book sources

                              Others

                              Notes and References

                              1. Book: Eshwarla . Prabhu . 2020-12-24 . Practical System Programming for Rust Developers: Build fast and secure software for Linux/Unix systems with the help of practical examples . Packt Publishing Ltd . 978-1-80056-201-1 . en.
                              2. Blanco-Cuaresma . Sergi . Bolmont . Emeline . 2017-05-30 . What can the programming language Rust do for astrophysics? . . en . 12 . S325 . 341–344 . 10.1017/S1743921316013168 . 1702.02951 . 2017IAUS..325..341B . 7857871 . 1743-9213.
                              3. News: Vaughan-Nichols . Steven . 7 December 2021 . Rust takes a major step forward as Linux's second official language . 2024-11-27 . . en.
                              4. Web site: How Rust went from a side project to the world's most-loved programming language . Thompson . Clive . 2023-02-14 . MIT Technology Review . en . 2023-02-23.
                              5. Book: Klabnik, Steve . The History of Rust . 2016-06-02 . Applicative 2016 on - Applicative 2016 . https://dl.acm.org/doi/10.1145/2959689.2960081 . 80 . New York, NY, USA . Association for Computing Machinery . 10.1145/2959689.2960081 . 978-1-4503-4464-7.
                              6. Project Servo: Technology from the past come to save the future from itself . https://archive.today/20211226213836/http://venge.net/graydon/talks/intro-talk-2.pdf . 2021-12-26 . Hoare . Graydon . Mozilla Annual Summit . July 2010 . 2024-10-29 .
                              7. Web site: Hoare . Graydon . Rust Prehistory (Archive of the original Rust OCaml compiler source code) . . November 2016 . 2024-10-29 .
                              8. Web site: 0.1 first supported public release Milestone · rust-lang/rust . 2024-10-29 . GitHub . en.
                              9. Web site: Rust logo . bugzilla.mozilla.org . 2 February 2024.
                              10. Web site: Purity by pcwalton · Pull Request #5412 · rust-lang/rust . 2024-10-29 . GitHub . en.
                              11. News: Binstock . Andrew . January 7, 2014 . The Rise And Fall of Languages in 2013 . . dead . https://web.archive.org/web/20160807075745/http://www.drdobbs.com/jvm/the-rise-and-fall-of-languages-in-2013/240165192 . 2016-08-07 . 2022-11-20.
                              12. News: Lardinois. Frederic. 2015-04-03. Mozilla And Samsung Team Up To Develop Servo, Mozilla's Next-Gen Browser Engine For Multicore Processors. TechCrunch. 2017-06-25. 2016-09-10. https://web.archive.org/web/20160910211537/https://techcrunch.com/2013/04/03/mozilla-and-samsung-collaborate-on-servo-mozillas-next-gen-browser-engine-for-tomorrows-multicore-processors/. live.
                              13. Web site: Firefox 45.0, See All New Features, Updates and Fixes . 2024-10-31 . Mozilla . en.
                              14. Web site: Lardinois . Frederic . 2017-09-29 . It's time to give Firefox another chance . 2023-08-15 . TechCrunch . en-US.
                              15. Book: Pereira . Rui . Couto . Marco . Ribeiro . Francisco . Rua . Rui . Cunha . Jácome . Fernandes . João Paulo . Saraiva . João . Energy efficiency across programming languages: How do energy, time, and memory relate? . 2017-10-23 . Proceedings of the 10th ACM SIGPLAN International Conference on Software Language Engineering . https://dl.acm.org/doi/10.1145/3136014.3136031 . SLE 2017 . New York, NY, USA . Association for Computing Machinery . 256–267 . 10.1145/3136014.3136031 . 1822/65359 . 978-1-4503-5525-4.
                              16. Web site: Mozilla lays off 250 employees while it refocuses on commercial products . Cimpanu . Catalin . . 2020-12-02 . 2020-08-11 . March 18, 2022 . https://web.archive.org/web/20220318025804/https://www.zdnet.com/article/mozilla-lays-off-250-employees-while-it-refocuses-on-commercial-products/ . live.
                              17. Web site: Mozilla lays off 250 employees due to the pandemic . . Cooper . Daniel . 2020-12-02 . 2020-08-11 . 2020-12-13 . https://web.archive.org/web/20201213020220/https://www.engadget.com/mozilla-firefox-250-employees-layoffs-151324924.html . live.
                              18. Web site: Tung . Liam . Programming language Rust: Mozilla job cuts have hit us badly but here's how we'll survive . 2022-04-21 . ZDNet . en . April 21, 2022 . https://web.archive.org/web/20220421083509/https://www.zdnet.com/article/programming-language-rust-mozilla-job-cuts-have-hit-us-badly-but-heres-how-well-survive/ . live.
                              19. Web site: Laying the foundation for Rust's future . Rust Blog . 2020-12-02 . 2020-08-18 . 2020-12-02 . https://web.archive.org/web/20201202022933/https://blog.rust-lang.org/2020/08/18/laying-the-foundation-for-rusts-future.html . live.
                              20. Web site: 2020-02-08 . Hello World! . 2022-06-04 . Rust Foundation . en . April 19, 2022 . https://web.archive.org/web/20220419124635/https://foundation.rust-lang.org/news/2021-02-08-hello-world/ . live.
                              21. Web site: 2021-02-09. Mozilla Welcomes the Rust Foundation . Mozilla Blog . https://web.archive.org/web/20210208212031/https://blog.mozilla.org/blog/2021/02/08/mozilla-welcomes-the-rust-foundation/. 2021-02-08. 2021-02-09. live.
                              22. Web site: Amadeo. Ron. 2021-04-07 . Google is now writing low-level Android code in Rust . 2021-04-08. Ars Technica. en-us. 2021-04-08. https://web.archive.org/web/20210408001446/https://arstechnica.com/gadgets/2021/04/google-is-now-writing-low-level-android-code-in-rust/. live.
                              23. Web site: Tim . Anderson . Entire Rust moderation team resigns . 2021-11-23 . 2022-08-04 . . en.
                              24. Web site: Governance Update . 2022-10-27 . Inside Rust Blog . en.
                              25. Web site: Claburn . Thomas . Rust Foundation apologizes for trademark policy confusion . 2023-04-17 . 2023-05-07 . The Register . en.
                              26. Web site: Proven . Liam . 2019-11-27 . Rebecca Rumbul named new CEO of The Rust Foundation . 2022-07-14 . The Register . en . "Both are curly bracket languages, with C-like syntax that makes them unintimidating for C programmers.".
                              27. Web site: Tyson . Matthew . 2022-03-03 . Rust programming for Java developers . 2022-07-14 . InfoWorld . en.
                              28. Web site: Glossary of Unicode Terms . 2024-07-30 . Unicode Consortium.
                              29. On Unix systems, this is often UTF-8 strings without an internal 0 byte. On Windows, this is UTF-16 strings without an internal 0 byte. Unlike these, and are always valid UTF-8 and can contain internal zeros.
                              30. Web site: OsStr in std::ffi – Rust . 2023-10-02 . doc.rust-lang.org.
                              31. Web site: OsString in std::ffi – Rust . 2023-10-02 . doc.rust-lang.org.
                              32. Web site: Path in std::path – Rust . 2023-10-02 . doc.rust-lang.org.
                              33. Web site: PathBuf in std::path – Rust . 2023-10-02 . doc.rust-lang.org.
                              34. Web site: std::boxed – Rust . 2023-06-23 . doc.rust-lang.org.
                              35. Web site: std::boxed – Rust . 2023-06-24 . doc.rust-lang.org.
                              36. Web site: Rc in std::rc – Rust . 2023-06-24 . doc.rust-lang.org.
                              37. Web site: Arc in std::sync – Rust . 2023-06-24 . doc.rust-lang.org.
                              38. Web site: Cell in std::cell – Rust . 2023-06-24 . doc.rust-lang.org.
                              39. Web site: Mutex in std::sync – Rust . 2023-06-24 . doc.rust-lang.org.
                              40. Web site: RwLock in std::sync – Rust . 2023-06-24 . doc.rust-lang.org.
                              41. Web site: Condvar in std::sync – Rust . 2023-06-24 . doc.rust-lang.org.
                              42. Web site: Duration in std::time – Rust . 2023-06-24 . doc.rust-lang.org.
                              43. Web site: HashMap in std::collections – Rust . 2023-06-24 . doc.rust-lang.org.
                              44. Web site: BTreeMap in std::collections – Rust . 2023-06-24 . doc.rust-lang.org.
                              45. Web site: std::option - Rust . 2023-11-12 . doc.rust-lang.org.
                              46. Book: Balasubramanian . Abhiram . Baranowski . Marek S. . Burtsev . Anton . Panda . Aurojit . Rakamarić . Zvonimir . Ryzhyk . Leonid . Proceedings of the 16th Workshop on Hot Topics in Operating Systems . System Programming in Rust . 2017-05-07 . https://doi.org/10.1145/3102980.3103006 . HotOS '17 . New York, NY, US . Association for Computing Machinery . 156–161 . 10.1145/3102980.3103006 . 978-1-4503-5068-6 . 24100599 . June 1, 2022 . June 11, 2022 . https://web.archive.org/web/20220611034046/https://dl.acm.org/doi/10.1145/3102980.3103006 . live.
                              47. Web site: Lifetimes - Rust By Example . 2024-10-29 . doc.rust-lang.org.
                              48. Web site: Explicit annotation - Rust By Example . 2024-10-29 . doc.rust-lang.org.
                              49. Web site: Shamrell-Harrington . Nell . The Rust Borrow Checker – a Deep Dive . 2022-06-25 . InfoQ . en.
                              50. Web site: References and Borrowing - The Rust Programming Language . 2024-10-29 . doc.rust-lang.org.
                              51. Web site: Using Trait Objects That Allow for Values of Different Types – The Rust Programming Language . 2022-07-11 . doc.rust-lang.org.
                              52. Web site: Samsung joins Mozilla's quest for Rust . Rosenblatt . Seth . 2013-04-03 . . 2013-04-05 . 2013-04-04 . https://web.archive.org/web/20130404142333/http://reviews.cnet.com/8301-3514_7-57577639/samsung-joins-mozillas-quest-for-rust/ . live.
                              53. Web site: Brown . Neil . 2013-04-17 . A taste of Rust . live . https://web.archive.org/web/20130426010754/http://lwn.net/Articles/547145/ . 2013-04-26 . 2013-04-25 . LWN.net.
                              54. Web site: Races – The Rustonomicon. doc.rust-lang.org. 2017-07-03. 2017-07-10. https://web.archive.org/web/20170710194643/https://doc.rust-lang.org/nomicon/races.html. live.
                              55. Web site: The Rust Language FAQ . static.rust-lang.org . dead . https://web.archive.org/web/20150420104147/http://static.rust-lang.org/doc/master/complement-lang-faq.html . 2015-04-20 . 2015 . 2017-04-24.
                              56. Web site: RAII – Rust By Example. 2020-11-22. doc.rust-lang.org. 2019-04-21. https://web.archive.org/web/20190421131142/https://doc.rust-lang.org/rust-by-example/scope/raii.html. live.
                              57. Web site: Abstraction without overhead: traits in Rust. Rust Blog. October 19, 2021. September 23, 2021. https://web.archive.org/web/20210923101530/https://blog.rust-lang.org/2015/05/11/traits.html. live.
                              58. Web site: Box, stack and heap . 2022-06-13 . Rust By Example.
                              59. Web site: Macros By Example . The Rust Reference . 21 April 2023.
                              60. Web site: Rust std::println! macro source . GitHub . 1 October 2024.
                              61. Web site: Procedural Macros . The Rust Programming Language Reference . 23 Mar 2021 . 7 November 2020 . https://web.archive.org/web/20201107233444/https://doc.rust-lang.org/reference/procedural-macros.html . live.
                              62. Web site: Dioxus rsx! macro source . GitHub . 1 October 2024.
                              63. Web site: Dioxus rsx! macro documentation . Dioxus Labs . 1 October 2024.
                              64. Web site: Serde Derive. Serde Derive documentation. 23 Mar 2021. 17 April 2021. https://web.archive.org/web/20210417114849/https://serde.rs/derive.html. live.
                              65. Web site: extendr_api – Rust. Extendr Api Documentation. 23 Mar 2021. May 25, 2021. https://web.archive.org/web/20210525082129/https://extendr.github.io/extendr/extendr_api/index.html. live.
                              66. Web site: Safe Interoperability between Rust and C++ with CXX. 2020-12-06. 2021-01-03. InfoQ. en. January 22, 2021. https://web.archive.org/web/20210122142035/https://www.infoq.com/news/2020/12/cpp-rust-interop-cxx/. live.
                              67. Web site: Type layout – The Rust Reference . doc.rust-lang.org . 15 July 2022.
                              68. Web site: Overview of the compiler . Rust Compiler Development Guide . Rust project contributors . 7 November 2024.
                              69. Web site: Code Generation - Rust Compiler Development Guide . rustc-dev-guide.rust-lang.org . 3 March 2024.
                              70. Web site: rust-lang/rustc_codegen_gcc . GitHub . The Rust Programming Language . 3 March 2024 . 2 March 2024.
                              71. Web site: rust-lang/rustc_codegen_cranelift . GitHub . The Rust Programming Language . 3 March 2024 . 2 March 2024.
                              72. Perkel . Jeffrey M. . 2020-12-01 . Why scientists are turning to Rust . . en . 588 . 7836 . 185–186 . 10.1038/d41586-020-03382-2 . 33262490 . 2020Natur.588..185P . 227251258 . May 15, 2022 . May 6, 2022 . https://web.archive.org/web/20220506040523/https://www.nature.com/articles/d41586-020-03382-2 . live.
                              73. Web site: Simone . Sergio De . 2019-04-18 . Rust 1.34 Introduces Alternative Registries for Non-Public Crates . 2022-07-14 . InfoQ . en.
                              74. Web site: Clippy Lints . 2023-11-30 . The Rust Programming Language.
                              75. Popescu . Natalie . Xu . Ziyang . Apostolakis . Sotiris . August . David I. . Levy . Amit . 2021-10-15 . Safer at any speed: automatic context-aware safety enhancement for Rust . Proceedings of the ACM on Programming Languages . 5 . OOPSLA . "We observe a large variance in the overheads of checked indexing: 23.6% of benchmarks do report significant performance hits from checked indexing, but 64.5% report little-to-no impact and, surprisingly, 11.8% report improved performance ... Ultimately, while unchecked indexing can improve performance, most of the time it does not." . 5 . Section 2 . 10.1145/3485480. 238212612. free .
                              76. Web site: Anderson . Tim . Can Rust save the planet? Why, and why not . 2022-07-11 . The Register . en.
                              77. Web site: Yegulalp . Serdar . 2021-10-06 . What is the Rust language? Safe, fast, and easy software development . 2022-06-25 . InfoWorld . en.
                              78. Astrauskas . Vytautas . Matheja . Christoph . Poli . Federico . Müller . Peter . Summers . Alexander J. . 2020-11-13 . How do programmers use unsafe rust? . Proceedings of the ACM on Programming Languages . en . 4 . OOPSLA . 1–27 . 10.1145/3428204 . 2475-1421. 20.500.11850/465785 . free .
                              79. Book: Couprie, Geoffroy . 2015 IEEE Security and Privacy Workshops . Nom, A Byte oriented, streaming, Zero copy, Parser Combinators Library in Rust . 2015 . https://ieeexplore.ieee.org/document/7163218 . 142–148 . 10.1109/SPW.2015.31. 978-1-4799-9933-0 . 16608844 .
                              80. Web site: Code generation – The Rust Reference . 2022-10-09 . doc.rust-lang.org.
                              81. Web site: How Fast Is Rust? . The Rust Programming Language FAQ . 11 April 2019 . 28 October 2020 . https://web.archive.org/web/20201028102013/https://doc.rust-lang.org/1.0.0/complement-lang-faq.html#how-fast-is-rust? . live.
                              82. Book: Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems . 2022-07-12 . 2021 . en . 10.1145/3445814.3446724. ... While some compilers (e.g., Rust) support structure reordering [82], C & C++ compilers are forbidden to reorder data structures (e.g., struct or class) [74] .... Farshin . Alireza . Barbette . Tom . Roozbeh . Amir . Maguire Jr . Gerald Q. . Kostić . Dejan . PacketMill: Toward per-Core 100-GBPS networking . 1–17 . 9781450383172 . 231949599.
                              83. Web site: Type layout . 2022-07-14 . The Rust Reference.
                              84. Web site: Keizer . Gregg . 2016-10-31 . Mozilla plans to rejuvenate Firefox in 2017 . 2023-05-13 . Computerworld . en.
                              85. Web site: Claburn . Thomas . 2023-01-12 . Google polishes Chromium code with a layer of Rust . 2024-07-17 . The Register.
                              86. Web site: Supporting the Use of Rust in the Chromium Project . 2023-11-12 . Google Online Security Blog . en.
                              87. Web site: Shankland . Stephen . 2016-07-12 . Firefox will get overhaul in bid to get you interested again . 2022-07-14 . CNET . en.
                              88. Web site: Security Research Team . 2013-10-04 . ZeroMQ: Helping us Block Malicious Domains in Real Time . 2023-05-13 . Cisco Umbrella . en-US . 2023-05-13 . https://web.archive.org/web/20230513161542/https://umbrella.cisco.com/blog/zeromq-helping-us-block-malicious-domains . dead .
                              89. Web site: Cimpanu . Catalin . AWS to sponsor Rust project . 2019-10-15 . 2024-07-17 . . en.
                              90. Web site: Microsoft's next trick? Kicking things out of the cloud to Azure IoT Edge. Nichols. Shaun. 27 June 2018. The Register. en. 2019-09-27. 2019-09-27. https://web.archive.org/web/20190927092433/https://www.theregister.co.uk/2018/06/27/microsofts_next_cloud_trick_kicking_things_out_of_the_cloud_to_azure_iot_edge/. live.
                              91. Web site: Tung . Liam . Microsoft: Why we used programming language Rust over Go for WebAssembly on Kubernetes app . 2022-04-21 . ZDNet . en . April 21, 2022 . https://web.archive.org/web/20220421043549/https://www.zdnet.com/article/microsoft-why-we-used-programming-language-rust-over-go-for-webassembly-on-kubernetes-app/ . live.
                              92. Web site: Claburn . Thomas . 20 September 2022 . In Rust We Trust: Microsoft Azure CTO shuns C and C++ . 7 July 2024 . The Register.
                              93. Web site: Simone . Sergio De . NPM Adopted Rust to Remove Performance Bottlenecks . 2023-11-20 . InfoQ . en.
                              94. Web site: 2024-06-30 . An Empirical Study of Rust-for-Linux: The Success, Dissatisfaction, and Compromise . 2024-11-28 . USENIX . en.
                              95. Web site: A first look at Rust in the 6.1 kernel [LWN.net] ]. 2023-11-11 . lwn.net.
                              96. Web site: Rust in the 6.2 kernel [LWN.net] ]. 2024-11-28 . lwn.net.
                              97. Web site: Committing to Rust in the kernel [LWN.net] ]. 2024-11-28 . lwn.net.
                              98. Web site: Amadeo . Ron . 2021-04-07 . Google is now writing low-level Android code in Rust . 2022-04-21 . Ars Technica . en-us . April 8, 2021 . https://web.archive.org/web/20210408001446/https://arstechnica.com/gadgets/2021/04/google-is-now-writing-low-level-android-code-in-rust/ . live.
                              99. Web site: Darkcrizt . Google Develops New Bluetooth Stack for Android, Written in Rust . Desde Linux . April 2, 2021 . 31 August 2024 . https://web.archive.org/web/20210825165930/https://blog.desdelinux.net/en/google-develops-a-new-bluetooth-stack-for-android-written-in-rust/ . 25 August 2021.
                              100. Web site: Claburn . Thomas . Microsoft is rewriting core Windows libraries in Rust . 2023-04-27 . 2023-05-13 . . en.
                              101. Web site: Proven . Liam . Small but mighty, 9Front's 'Humanbiologics' is here for the truly curious . The Register . 7 March 2024.
                              102. News: Yegulalp . Serdar . Rust's Redox OS could show Linux a few new tricks . 21 March 2016 . InfoWorld . 21 March 2016 . https://web.archive.org/web/20160321192838/http://www.infoworld.com/article/3046100/open-source-tools/rusts-redox-os-could-show-linux-a-few-new-tricks.html . live.
                              103. Web site: Tim . Anderson . 2021-01-14 . Another Rust-y OS: Theseus joins Redox in pursuit of safer, more resilient systems . 2022-07-14 . The Register . en.
                              104. Book: Boos . Kevin . Liyanage . Namitha . Ijaz . Ramla . Zhong . Lin . 2020 . Theseus: an Experiment in Operating System Structure and State Management . en . 1–19 . 978-1-939133-19-9.
                              105. Web site: HanDong (Alex). Zhang . 2022 Review The adoption of Rust in Business . 2023-01-31 . Rust Magazine . February 7, 2023 . en.
                              106. Web site: Fedora 29 new features: Startis now officially in Fedora . Sei . Mark . 10 October 2018 . Marksei, Weekly sysadmin pills . 2019-05-13 . 2019-04-13 . https://web.archive.org/web/20190413075055/https://www.marksei.com/fedora-29-new-features-startis/ . live.
                              107. Web site: Proven . Liam . 2022-07-12 . Oracle Linux 9 released, with some interesting additions . 2022-07-14 . . en.
                              108. Web site: Proven . Liam . 2023-02-02 . System76 teases features coming in homegrown Rust-based desktop COSMIC . 2024-07-17 . . en.
                              109. Web site: Vivian . Hu . 2020-06-12 . Deno Is Ready for Production . 2022-07-14 . InfoQ . en.
                              110. Web site: Abrams. Lawrence. 2021-02-06. This Flash Player emulator lets you securely play your old games. 2021-12-25. BleepingComputer. en-us.
                              111. Web site: Kharif . Olga . October 17, 2020 . Ethereum Blockchain Killer Goes By Unassuming Name of Polkadot . subscription . July 14, 2021 . Bloomberg L.P..
                              112. Web site: 2024 Stack Overflow Developer Survey - Technology . 2024-11-28 . Stack Overflow.
                              113. Web site: Claburn . Thomas . 2022-06-23 . Linus Torvalds says Rust is coming to the Linux kernel . 2022-07-15 . The Register . en.
                              114. Jung . Ralf . Jourdan . Jacques-Henri . Krebbers . Robbert . Dreyer . Derek . 2017-12-27 . RustBelt: securing the foundations of the Rust programming language . Proceedings of the ACM on Programming Languages . en . 2 . POPL . 1–34 . 10.1145/3158154 . 2475-1421. 21.11116/0000-0003-34C6-3 . free .
                              115. Popescu . Natalie . Xu . Ziyang . Apostolakis . Sotiris . August . David I. . Levy . Amit . 2021-10-20 . Safer at any speed: automatic context-aware safety enhancement for Rust . Proceedings of the ACM on Programming Languages . en . 5 . OOPSLA . 1–23 . 10.1145/3485480 . 2475-1421. free .
                              116. Web site: Liam . Tung . 2021-02-08 . The Rust programming language just took a huge step forwards . 2022-07-14 . ZDNet . en.
                              117. Web site: Vigliarolo . Brandon . 2021-02-10 . The Rust programming language now has its own independent foundation . https://web.archive.org/web/20230320172900/https://www.techrepublic.com/article/the-rust-programming-language-now-has-its-own-independent-foundation/ . 2023-03-20 . 2022-07-14 . . en-US.
                              118. News: Paul. Krill. Rust language moves to independent foundation. InfoWorld. 10 April 2021. 10 April 2021. https://web.archive.org/web/20210410161528/https://www.infoworld.com/article/3606774/rust-language-moves-to-independent-foundation.html. live.
                              119. News: Steven J.. Vaughan-Nichols. 9 April 2021. AWS's Shane Miller to head the newly created Rust Foundation. ZDNet. 10 April 2021. 10 April 2021. https://web.archive.org/web/20210410031305/https://www.zdnet.com/article/awss-shane-miller-to-head-the-newly-created-rust-foundation/. live.
                              120. News: Rust Foundation appoints Rebecca Rumbul as executive director. ZDNet. Steven J.. Vaughan-Nichols. 17 November 2021. 18 November 2021. November 18, 2021. https://web.archive.org/web/20211118062346/https://www.zdnet.com/article/rust-foundation-appoints-rebecca-rumbul-as-executive-director/. live.
                              121. Web site: Governance . 2024-07-18 . The Rust Programming Language . en-US . May 10, 2022 . https://web.archive.org/web/20220510225505/https://www.rust-lang.org/governance . live.
                              122. Web site: Introducing the Rust Leadership Council . 2024-01-12 . Rust Blog . en.