Rust (programming language)
Paradigms | Multi-paradigm: concurrent, functional, generic, imperative, structured |
---|---|
Designed by | Graydon Hoare |
Developer | The Rust Foundation |
First appeared | July 7, 2010 |
Stable release | 1.59.0[1]
/ February 24, 2022 |
Typing discipline | Affine, inferred, nominal, static, strong |
Implementation language | Rust |
Platform | AMD64, i686, arm, AArch64, armv7, mips, mips64, mipsel, mips64el, powerpc, powerpc64, powerpc64le, risc-v, s390x, WebAssembly[note 1] |
OS | Windows, Linux, macOS, FreeBSD, NetBSD, Illumos, Haiku. Android, Redox, iOS, Fuchsia[note 2] |
License | MIT or Apache 2.0[2] |
Filename extensions | .rs , .rlib |
Website | www |
Influenced by | |
Influenced | |
Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency.[12][13] Rust is syntactically similar to C++,[14] but can guarantee memory safety by using a borrow checker to validate references.[15] Rust achieves memory safety without garbage collection, and reference counting is optional.[16][17] Rust has been called a systems programming language, and in addition to high-level features such as functional programming it also offers mechanisms for low-level memory management.
First appearing in 2010, Rust was designed by Graydon Hoare at Mozilla Research,[18] with contributions from Dave Herman, Brendan Eich, and others.[19][20] The designers refined the language while writing the Servo experimental browser engine[21] and the Rust compiler. Rust's major influences include C++, OCaml, Haskell, and Erlang.[5] It has gained increasing use and investment in industry, by companies including Amazon, Discord, Dropbox, Facebook (Meta), Google (Alphabet), and Microsoft.
Rust has been voted the "most loved programming language" in the Stack Overflow Developer Survey every year since 2016, and was used by 7% of the respondents in 2021.[22]
History[edit]
The language grew out of a personal project begun in 2006 by Mozilla employee Graydon Hoare.[13] Hoare has stated that the project was possibly named after rust fungi and that the name is also a subsequence of "robust".[23] Mozilla began sponsoring the project in 2009[13] and announced it in 2010.[24][25] The same year, work shifted from the initial compiler (written in OCaml) to an LLVM-based self-hosting compiler written in Rust.[26] Named rustc, it successfully compiled itself in 2011.[27]
The first numbered pre-alpha release of the Rust compiler occurred in January 2012.[28] Rust 1.0, the first stable release, was released on May 15, 2015.[29][30] Following 1.0, stable point releases are delivered every six weeks, while features are developed in nightly Rust with daily releases, then tested with beta releases that last six weeks.[31][32] Every two to three years, a new Rust "edition" is produced. This is to provide an easy reference point for changes due to the frequent nature of Rust's train release schedule, as well as to provide a window to make limited breaking changes. Editions are largely compatible.[33]
Along with conventional static typing, before version 0.4, Rust also supported typestates. The typestate system modeled assertions before and after program statements, through use of a special check
statement. Discrepancies could be discovered at compile time, rather than at runtime, as might be the case with assertions in C or C++ code. The typestate concept was not unique to Rust, as it was first introduced in the language NIL.[34] Typestates were removed because in practice they were little used,[35] though the same functionality can be achieved by leveraging Rust's move semantics.[36]
The object system style changed considerably within versions 0.2, 0.3, and 0.4 of Rust. Version 0.2 introduced classes for the first time, and version 0.3 added several features, including destructors and polymorphism through the use of interfaces. In Rust 0.4, traits were added as a means to provide inheritance; interfaces were unified with traits and removed as a separate feature. Classes were also removed and replaced by a combination of implementations and structured types.[37]
Starting in Rust 0.9 and ending in Rust 0.11, Rust had two built-in pointer types: ~
and @
, simplifying the core memory model. It reimplemented those pointer types in the standard library as Box
and (the now removed) Gc
.
In January 2014, before the first stable release, Rust 1.0, the editor-in-chief of Dr. Dobb's, Andrew Binstock, commented on Rust's chances of becoming a competitor to C++ and to the other up-and-coming languages D, Go, and Nim (then Nimrod). According to Binstock, while Rust was "widely viewed as a remarkably elegant language", adoption slowed because it repeatedly changed between versions.[38]
In August 2020, Mozilla laid off 250 of its 1,000 employees worldwide as part of a corporate restructuring caused by the long-term impact of the COVID-19 pandemic.[39][40] Among those laid off were most of the Rust team,[41][better source needed] while the Servo team was completely disbanded.[42][better source needed] The event raised concerns about the future of Rust.[43]
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 taking ownership of all trademarks and domain names, and also take financial responsibility for their costs.[44]
On February 8, 2021 the formation of the Rust Foundation was officially announced by its five founding companies (AWS, Huawei, Google, Microsoft,[45][46] and Mozilla).[47][48]
On April 6, 2021, Google announced support for Rust within Android Open Source Project as an alternative to C/C++.[49]
Syntax[edit]
Here is a "Hello, World!" program written in Rust. The println!
macro prints the message to standard output.
fn main() {
println!("Hello, World!");
}
The syntax of Rust is similar to C and C++, with blocks of code delimited by curly brackets, and control flow keywords such as if
, else
, while
, and for
, although the specific syntax for defining functions is more similar to Pascal. Despite the syntactic resemblance to C and C++, the semantics of Rust are closer to that of the ML family of languages and the Haskell language. Nearly every part of a function body is an expression,[50] even control flow operators. For example, the ordinary if
expression also takes the place of C's ternary conditional, an idiom used by ALGOL 60. As in Lisp, a function need not end with a return
expression: in this case if the semicolon is omitted, the last expression in the function creates the return value, as seen in the following recursive implementation of the factorial function:
fn factorial(i: u64) -> u64 {
match i {
0 => 1,
n => n * factorial(n-1)
}
}
The following iterative implementation uses the ..=
operator to create an inclusive range:
fn factorial(i: u64) -> u64 {
(2..=i).product()
}
More advanced features in Rust include the use of generic functions to achieve type polymorphism. The following is a Rust program to calculate the sum of two things, for which addition is implemented, using a generic function:
use std::ops::Add;
fn sum<T: Add<Output = T>>(num1: T, num2: T) -> T {
num1 + num2
}
fn main() {
let result1 = sum(10, 20);
println!("Sum is: {}", result1);
let result2 = sum(10.23, 20.45);
println!("Sum is: {}", result2);
}
Rust has no null pointers[51] unless dereferencing a null pointer (which has to be surrounded in an unsafe
block). Rust instead uses a Haskell -like Option
type, which has two variants, Some<T>
and None
which has to be handled using syntactic sugar such as the if let
statement in order to access the inner type, in this case, a string:
fn main() {
let name: Option<String> = None;
// If name was not None, it would print here.
if let Some(name) = name {
println!("{}", name);
}
}
Features[edit]
Rust is intended to be a language for highly concurrent and highly safe systems,[52] and programming in the large, that is, creating and maintaining boundaries that preserve large-system integrity.[53] This has led to a feature set with an emphasis on safety, control of memory layout, and concurrency.
Memory safety[edit]
Rust is designed to be memory safe. It does not permit null pointers, dangling pointers, or data races.[54][55][56] Data values can be initialized only through a fixed set of forms, all of which require their inputs to be already initialized.[57] To replicate pointers being either valid or NULL
, such as in linked list or binary tree data structures, the Rust core library provides an option type, which can be used to test whether a pointer has Some
value or None
.[55] Rust has added syntax to manage lifetimes, which are checked at compile time by the borrow checker. Unsafe code can subvert some of these restrictions using the unsafe
keyword.[15]
Memory management[edit]
Rust does not use automated garbage collection. Memory and other resources are managed through the resource acquisition is initialization convention,[58] with optional reference counting. Rust provides deterministic management of resources, with very low overhead.[59] Rust favors stack allocation of values and does not perform implicit boxing.
There is the concept of references (using the &
symbol), which does not involve run-time reference counting. The safety of such pointers is verified at compile time, preventing dangling pointers and other forms of undefined behavior. Rust's type system separates shared, immutable pointers of the form &T
from unique, mutable pointers of the form &mut T
. A mutable pointer can be coerced to an immutable pointer, but not vice versa.
Ownership[edit]
Rust has an ownership system where all values have a unique owner, and the scope of the value is the same as the scope of the owner.[60][61] Values can be passed by immutable reference, using &T
, by mutable reference, using &mut T
, or by value, using T
. At all times, there can either be multiple immutable references or one mutable reference (an implicit readers–writer lock). The Rust compiler enforces these rules at compile time and also checks that all references are valid.
Types and polymorphism[edit]
Rust's type system supports a mechanism called traits, inspired by type classes in the Haskell language. Traits annotate types and are used to define shared behavior between different types. For example, floats and integers both implement the Add
trait because they can both be added; and any type that can be printed out as a string implements the Display
or Debug
traits. This facility is known as ad hoc polymorphism.
Rust uses type inference for variables declared with the keyword let
. Such variables do not require a value to be initially assigned to determine their type. A compile time error results if any branch of code leaves the variable without an assignment.[62] Variables assigned multiple times must be marked with the keyword mut
(short for mutable).
A function can be given generic parameters, which allows the same function to be applied to different types. 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 Rust 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. Rust's type erasure is also available by using the keyword dyn
. The benefit of monomorphization is optimized code for each specific use case; the drawback is increased compile time and size of the resulting binaries.
In Rust, user-defined types are created with the struct
or enum
keywords. These types usually contain fields of data like objects or classes in other languages. The impl
keyword can define methods for the types (data and functions are defined separately) or implement a trait for the types. A trait is a contract that a structure has certain required methods implemented. Traits are used to restrict generic parameters and because traits can provide a struct with more methods than the user defined. For example, the trait Iterator
requires that the next
method be defined for the type. Once the next
method is defined the trait provides common functional helper methods over the iterator like map
or filter
.
Type aliases, including generic arguments, can also be defined with the type
keyword.
The object system within Rust is based around implementations, traits and structured types. Implementations fulfill a role similar to that of classes within other languages and are defined with the keyword impl
. Traits provide inheritance and polymorphism; they allow methods to be defined and mixed in to implementations. Structured types are used to define fields. Implementations and traits cannot define fields themselves, and only traits can provide inheritance. Among other benefits, this prevents the diamond problem of multiple inheritance, as in C++. In other words, Rust supports interface inheritance but replaces implementation inheritance with composition; see composition over inheritance.
Macros for language extension[edit]
It is possible to extend the Rust language using the procedural macro mechanism.[63]
Procedural macros use Rust functions that run at compile time to modify the compiler's token stream. This complements the declarative macro mechanism (also known as macros by example), which uses pattern matching to achieve similar goals.
Procedural macros come in three flavors:
- Function-like macros
custom!(...)
- Derive macros
#[derive(CustomDerive)]
- Attribute macros
#[custom_attribute]
The println!
macro is an example of a function-like macro and serde_derive
[64] is a commonly used library for generating code
for 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
derive procedural macros
to implement JSON reading and writing as well as the ability to format a structure for debugging.
use serde_json::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
struct Point {
x: i32,
y: i32,
}
fn main() {
let point = Point { x: 1, y: 2 };
let serialized = serde_json::to_string(&point).unwrap();
println!("serialized = {}", serialized);
let deserialized: Point = serde_json::from_str(&serialized).unwrap();
println!("deserialized = {:?}", deserialized);
}
Interface with C and C++[edit]
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. While calling C++ has historically been challenging (from any language), Rust has a library, CXX, to allow calling to or from C++, and "CXX has zero or negligible overhead."[66]
Components[edit]
Besides the compiler and standard library, the Rust ecosystem includes additional components for software development. Component installation is typically managed by rustup, a Rust toolchain installer developed by the Rust project.[67]
Cargo[edit]
Cargo is Rust's build system and package manager. Cargo downloads, compiles, distributes, and uploads packages, called crates,[68] maintained in the official registry.[69] Cargo also wraps Clippy and other Rust components.
Cargo requires projects to follow a certain directory structure, with some flexibility.[70] Projects using Cargo may be either a single crate or a workspace composed of multiple crates that may depend on each other.[71]
The dependencies for a crate are specified in a Cargo.toml file along with SemVer version requirements, telling Cargo which versions of the dependency are compatible with the crate using them.[72] By default, Cargo sources its dependencies from the user-contributed registry crates.io, but Git repositories and crates in the local filesystem can be specified as dependencies, too.[73]
Rustfmt[edit]
Rustfmt is a code formatter for Rust. It takes Rust source code as input and changes the whitespace and indentation to produce code formatted in accordance to the Rust style guide or rules specified in a rustfmt.toml file. Rustfmt can be invoked as a standalone program or on a Rust project through Cargo.[74][75]
Clippy[edit]
Clippy is Rust's built-in linting tool to improve the correctness, performance, and readability of Rust code. It was created in 2014[76] and named after the eponymous Microsoft Office feature.[77] As of 2021, Clippy has more than 450 rules,[78] which can be browsed online and filtered by category.[79] Some rules are disabled by default.
IDE support[edit]
The most popular language servers for Rust are rust-analyzer[80] and RLS.[81] These projects provide IDEs and text editors with more information about a Rust project. Basic features include linting checks via Clippy and formatting via Rustfmt, among other functions. RLS also provides automatic code completion via Racer, though development of Racer was slowed down in favor of rust-analyzer.[82]
Performance[edit]
Rust aims "to be as efficient and portable as idiomatic C++, without sacrificing safety".[83] Since Rust utilizes LLVM, any performance improvements in LLVM also carry over to Rust.[84]
Adoption[edit]
Rust has been adopted by major software engineering companies. For example, Dropbox is now written in Rust, as are some components at Amazon,[85] Microsoft, Facebook,[86] Discord,[87]
and the Mozilla Foundation. Rust was the third-most-loved programming language in the 2015 Stack Overflow annual survey[88] and took first place for 2016–2021.[89][90]
Web browsers and services[edit]
- Firefox has two projects written in Rust: the Servo parallel browser engine[91] developed by Mozilla in collaboration with Samsung;[92] and Quantum, which is composed of several sub-projects for improving Mozilla's Gecko browser engine.[93]
- OpenDNS uses Rust in two of its components.[94][95][96]
- Deno, a secure runtime for JavaScript and TypeScript, is built with V8, Rust, and Tokio.[97]
- Figma, a web-based vector graphics editor, is written in Rust.
Operating systems[edit]
- Redox is a "full-blown Unix-like operating system" including a microkernel written in Rust.[98]
- Theseus, an experimental OS with "intralingual design", is written in Rust.[99]
- The Google Fuchsia capability-based operating system has some[vague] tools written in Rust.[100]
- Stratis is a file system manager written in Rust for Fedora[101] and RHEL 8.[102]
- exa is a Unix/Linux command line alternative to ls written in Rust.
- Since 2021, there is a patch series for adding Rust support to the Linux kernel.[103]
Other notable projects and platforms[edit]
- Discord uses Rust for portions of its backend, as well as client-side video encoding,[104] to augment the core infrastructure written in Elixir.[105]
- Microsoft Azure IoT Edge, a platform used to run Azure services and artificial intelligence on IoT devices, has components implemented in Rust.[106]
- Polkadot (cryptocurrency) is a blockchain platform written in Rust.
- Ruffle is an open-source SWF emulator written in Rust.[107]
- TerminusDB, an open source graph database designed for collaboratively building and curating knowledge graphs, is written in Prolog and Rust.[108]
- Amazon Web Services has multiple projects written in Rust, including Firecracker, a virtualization solution,[109] and Bottlerocket, a Linux distribution and containerization solution.[110]
Community[edit]
Rust's official website lists online forums, messaging platforms, and in-person meetups for the Rust community.[112] Conferences dedicated to Rust development include:
- RustConf: an annual conference in Portland, Oregon. Held annually since 2016 (except in 2020 and 2021 because of the COVID-19 pandemic).[113]
- Rust Belt Rust: a #rustlang conference in the Rust Belt[114]
- RustFest: Europe's @rustlang conference[115]
- RustCon Asia[citation needed]
- Rust LATAM[citation needed]
- Oxidize Global[116]
Governance[edit]
Formation | February 8, 2021 |
---|---|
Founders | |
Type | Nonprofit organization |
Location | |
Shane Miller | |
Rebecca Rumbul | |
Website | foundation |
The Rust Foundation is a non-profit membership organization incorporated in Delaware, United States, with the primary purposes of supporting the maintenance and development of the language, cultivating the Rust project team members and user communities, managing the technical infrastructure underlying the development of Rust, and managing and stewarding the Rust trademark.
It was established on February 8, 2021, with five founding corporate members (Amazon Web Services, Huawei, Google, Microsoft, and Mozilla).[117] The foundation's board is chaired by Shane Miller.[118] Starting in late 2021, its Executive Director and CEO is Rebecca Rumbul.[119] Prior to this, Ashley Williams was interim executive director.[120]
See also[edit]
Explanatory notes[edit]
References[edit]
- ^ "Announcing Rust 1.59.0". February 24, 2022. Retrieved February 26, 2022.
- ^ "Rust Legal Policies". Rust-lang.org. Archived from the original on April 4, 2018. Retrieved April 3, 2018.
- ^ "Note Research: Type System". GitHub. February 1, 2015. Archived from the original on February 17, 2019. Retrieved March 25, 2015.
- ^ "RFC for 'if let' expression". GitHub. Archived from the original on March 4, 2016. Retrieved December 4, 2014.
- ^ a b "The Rust Reference: Appendix: Influences". Archived from the original on January 26, 2019. Retrieved November 11, 2018.
- ^ "Command Optimizations?". June 26, 2014. Archived from the original on July 10, 2019. Retrieved December 10, 2014.
- ^ "Idris – Uniqueness Types". Archived from the original on November 21, 2018. Retrieved November 20, 2018.
- ^ Jaloyan, Georges-Axel (October 19, 2017). "Safe Pointers in SPARK 2014". arXiv:1710.07047. Bibcode:2017arXiv171007047J.
- ^ Lattner, Chris. "Chris Lattner's Homepage". Nondot.org. Archived from the original on December 25, 2018. Retrieved May 14, 2019.
- ^ "Microsoft opens up Rust-inspired Project Verona programming language on GitHub". ZDNet. Archived from the original on January 17, 2020. Retrieved January 17, 2020.
- ^ "PHP RFC: Shorter Attribute Syntax". June 3, 2020. Archived from the original on March 7, 2021. Retrieved March 17, 2021.
- ^ Hoare, Graydon (December 28, 2016). "Rust is mostly safety". Graydon2. Dreamwidth Studios. Archived from the original on May 2, 2019. Retrieved May 13, 2019.
- ^ a b c "FAQ – The Rust Project". Rust-lang.org. Archived from the original on June 9, 2016. Retrieved June 27, 2019.
- ^ "Rust vs. C++ Comparison". Archived from the original on November 20, 2018. Retrieved November 20, 2018.
- ^ a b "Unsafe Rust". Archived from the original on October 14, 2020. Retrieved October 17, 2020.
- ^ "Fearless Security: Memory Safety". Archived from the original on November 8, 2020. Retrieved November 4, 2020.
- ^ "Rc<T>, the Reference Counted Smart Pointer". Archived from the original on November 11, 2020. Retrieved November 4, 2020.
- ^ "Rust language". Archived from the original on September 6, 2020. Retrieved September 9, 2020.
Mozilla was the first investor for Rust and continues to sponsor the work of the open source project. Mozilla also utilizes Rust in many of its core initiatives including Servo and key parts of Firefox.
- ^ Noel (July 8, 2010). "The Rust Language". Lambda the Ultimate. Archived from the original on November 23, 2012. Retrieved October 30, 2010.
- ^ "Contributors to rust-lang/rust". GitHub. Archived from the original on May 26, 2020. Retrieved October 12, 2018.
- ^ Bright, Peter (April 3, 2013). "Samsung teams up with Mozilla to build browser engine for multicore machines". Ars Technica. Archived from the original on December 16, 2016. Retrieved April 4, 2013.
- ^ "Stack Overflow Developer Survey 2021". Stack Overflow. Retrieved August 3, 2021.
{{cite web}}
: CS1 maint: url-status (link) - ^ Hoare, Graydon (June 7, 2014). "Internet archaeology: the definitive, end-all source for why Rust is named "Rust"". Reddit.com. Archived from the original on July 14, 2016. Retrieved November 3, 2016.
- ^ "Future Tense". April 29, 2011. Archived from the original on September 18, 2012. Retrieved February 6, 2012.
- ^ Hoare, Graydon (July 7, 2010). Project Servo (PDF). Mozilla Annual Summit 2010. Whistler, Canada. Archived (PDF) from the original on July 11, 2017. Retrieved February 22, 2017.
- ^ Hoare, Graydon (October 2, 2010). "Rust Progress". Archived from the original on August 15, 2014. Retrieved October 30, 2010.
- ^ Hoare, Graydon (April 20, 2011). "[rust-dev] stage1/rustc builds". Archived from the original on July 20, 2011. Retrieved April 20, 2011.
- ^ catamorphism (January 20, 2012). "Mozilla and the Rust community release Rust 0.1 (a strongly-typed systems programming language with a focus on memory safety and concurrency)". Archived from the original on January 24, 2012. Retrieved February 6, 2012.
- ^ "Version History". GitHub. Archived from the original on May 15, 2015. Retrieved January 1, 2017.
- ^ The Rust Core Team (May 15, 2015). "Announcing Rust 1.0". Archived from the original on May 15, 2015. Retrieved December 11, 2015.
- ^ "Scheduling the Trains". Archived from the original on January 2, 2017. Retrieved January 1, 2017.
- ^ "G - How Rust is Made and "Nightly Rust" - The Rust Programming Language". doc.rust-lang.org. Retrieved May 22, 2021.
- ^ "What are editions? - The Edition Guide". doc.rust-lang.org. Retrieved May 22, 2021.
- ^ Strom, Robert E.; Yemini, Shaula (1986). "Typestate: A Programming Language Concept for Enhancing Software Reliability" (PDF). IEEE Transactions on Software Engineering: 157–171. doi:10.1109/TSE.1986.6312929. ISSN 0098-5589. S2CID 15575346. Archived (PDF) from the original on July 14, 2010. Retrieved November 14, 2010.
- ^ Walton, Patrick (December 26, 2012). "Typestate Is Dead, Long Live Typestate!". GitHub. Archived from the original on February 23, 2018. Retrieved November 3, 2016.
- ^ Biffle, Cliff (June 5, 2019). "The Typestate Pattern in Rust". Archived from the original on February 6, 2021. Retrieved February 1, 2021.
- ^ "[rust-dev] Rust 0.4 released". mail.mozilla.org. Retrieved October 31, 2021.
- ^ Binstock, Andrew. "The Rise And Fall of Languages in 2013". Dr Dobb's. Archived from the original on August 7, 2016. Retrieved December 11, 2015.
- ^ Cimpanu, Catalin (August 11, 2020). "Mozilla lays off 250 employees while it refocuses on commercial products". ZDNet. Retrieved December 2, 2020.
- ^ Cooper, Daniel (August 11, 2020). "Mozilla lays off 250 employees due to the pandemic". Engadget. Archived from the original on December 13, 2020. Retrieved December 2, 2020.
- ^ @tschneidereit (August 12, 2020). "Much of the team I used to manage was part of the Mozilla layoffs on Tuesday. That team was Mozilla's Rust team, and Mozilla's Wasmtime team. I thought I'd know how to talk about it by now, but I don't. It's heartbreaking, incomprehensible, and staggering in its impact" (Tweet). Retrieved December 2, 2020 – via Twitter.
- ^ @asajeffrey (August 11, 2020). "Mozilla is closing down the team I'm on, so I am one of the many folks now wondering what the next gig will be. It's been a wild ride!" (Tweet). Retrieved December 2, 2020 – via Twitter.
- ^ Kolakowski, Nick (August 27, 2020). "Is Rust in Trouble After Big Mozilla Layoffs?". Dice. Archived from the original on November 24, 2020. Retrieved December 2, 2020.
- ^ "Laying the foundation for Rust's future". Rust Blog. August 18, 2020. Archived from the original on December 2, 2020. Retrieved December 2, 2020.
- ^ "How Microsoft Is Adopting Rust". August 6, 2020. Archived from the original on August 10, 2020. Retrieved August 7, 2020.
- ^ "Why Rust for safe systems programming". Archived from the original on July 22, 2019. Retrieved July 22, 2019.
- ^ "Rust Foundation". foundation.rust-lang.org. February 8, 2021. Archived from the original on February 9, 2021. Retrieved February 9, 2021.
- ^ "Mozilla Welcomes the Rust Foundation". Mozilla Blog. February 9, 2021. Archived from the original on February 8, 2021. Retrieved February 9, 2021.
- ^ Amadeo, Ron (April 7, 2021). "Google is now writing low-level Android code in Rust". Ars Technica. Archived from the original on April 8, 2021. Retrieved April 8, 2021.
- ^ "rust/src/grammar/parser-lalr.y". GitHub. May 23, 2017. Retrieved May 23, 2017.
- ^ "std::option - Rust". doc.rust-lang.org.
- ^ Avram, Abel (August 3, 2012). "Interview on Rust, a Systems Programming Language Developed by Mozilla". InfoQ. Archived from the original on July 24, 2013. Retrieved August 17, 2013.
- ^ "Debian -- Details of package rustc in sid". packages.debian.org. Archived from the original on February 22, 2017. Retrieved February 21, 2017.
- ^ Rosenblatt, Seth (April 3, 2013). "Samsung joins Mozilla's quest for Rust". Archived from the original on April 4, 2013. Retrieved April 5, 2013.
- ^ a b Brown, Neil (April 17, 2013). "A taste of Rust". Archived from the original on April 26, 2013. Retrieved April 25, 2013.
- ^ "Races - The Rustonomicon". doc.rust-lang.org. Archived from the original on July 10, 2017. Retrieved July 3, 2017.
- ^ "The Rust Language FAQ". static.rust-lang.org. 2015. Archived from the original on April 20, 2015. Retrieved April 24, 2017.
- ^ "RAII – Rust By Example". doc.rust-lang.org. Archived from the original on April 21, 2019. Retrieved November 22, 2020.
- ^ "Abstraction without overhead: traits in Rust". Rust Blog.
- ^ Klabnik, Steve; Nichols, Carol (June 2018). "Chapter 4: Understanding Ownership". The Rust Programming Language. San Francisco, California: No Starch Press. p. 44. ISBN 978-1-593-27828-1. Archived from the original on May 3, 2019. Retrieved May 14, 2019.
- ^ "The Rust Programming Language: What is Ownership". Rust-lang.org. Archived from the original on May 19, 2019. Retrieved May 14, 2019.
- ^ Walton, Patrick (October 1, 2010). "Rust Features I: Type Inference". Archived from the original on July 8, 2011. Retrieved January 21, 2011.
- ^ "Procedural Macros". The Rust Programming Language Reference. Archived from the original on November 7, 2020. Retrieved March 23, 2021.
- ^ "Serde Derive". Serde Derive documentation. Archived from the original on April 17, 2021. Retrieved March 23, 2021.
- ^ "extendr_api - Rust". Extendr Api Documentation. Retrieved March 23, 2021.
- ^ "Safe Interoperability between Rust and C++ with CXX". InfoQ. December 6, 2020. Retrieved January 3, 2021.
- ^ rust-lang/rustup, The Rust Programming Language, May 17, 2021, retrieved May 17, 2021
- ^ "Packages and Crates - The Rust Programming Language". doc.rust-lang.org. Retrieved February 4, 2022.
- ^ "The Cargo Book". Retrieved February 19, 2022.
- ^ "Why Cargo Exists". The Cargo Book. Retrieved May 18, 2021.
- ^ "Workspaces - The Cargo Book". doc.rust-lang.org. Retrieved February 28, 2022.
- ^ "Dependency Resolution - The Cargo Book". doc.rust-lang.org. Retrieved February 28, 2022.
- ^ "Specifying Dependencies - The Cargo Book". doc.rust-lang.org. Retrieved May 17, 2021.
- ^ "rust-dev-tools/fmt-rfcs". GitHub. Retrieved September 21, 2021.
- ^ "rustfmt". GitHub. Retrieved May 19, 2021.
- ^ "Create README.md · rust-lang/rust-clippy@507dc2b". GitHub. Retrieved November 22, 2021.
- ^ "Day 1 - cargo subcommands | 24 days of Rust". zsiciarz.github.io. Retrieved November 22, 2021.
- ^ "rust-lang/rust-clippy". GitHub. Retrieved May 21, 2021.
- ^ "ALL the Clippy Lints". Retrieved May 22, 2021.
- ^ rust-analyzer/rust-analyzer, rust-analyzer, January 2, 2022, retrieved January 2, 2022
- ^ "rust-lang/rls". GitHub. Retrieved May 26, 2021.
- ^ "racer-rust/racer". GitHub. Retrieved May 26, 2021.
- ^ Walton, Patrick (December 5, 2010). "C++ Design Goals in the Context of Rust". Archived from the original on December 9, 2010. Retrieved January 21, 2011.
- ^ "How Fast Is Rust?". The Rust Programming Language FAQ. Archived from the original on October 28, 2020. Retrieved April 11, 2019.
- ^ "How our AWS Rust team will contribute to Rust's future successes". Amazon Web Services. March 3, 2021. Retrieved January 2, 2022.
- ^ "A brief history of Rust at Facebook". Engineering at Meta. April 29, 2021. Retrieved January 19, 2022.
- ^ 9 Companies That Use Rust in Production, Serokell, November 18, 2020, retrieved October 7, 2021
- ^ "Stack Overflow Developer Survey 2015". Stackoverflow.com. Archived from the original on December 31, 2016. Retrieved November 3, 2016.
- ^ "Stack Overflow Developer Survey 2019". Stack Overflow. Archived from the original on October 8, 2020. Retrieved March 31, 2021.
- ^ "Stack Overflow Developer Survey 2021". Stack Overflow. Retrieved August 24, 2021.
{{cite web}}
: CS1 maint: url-status (link) - ^ Yegulalp, Serdar (April 3, 2015). "Mozilla's Rust-based Servo browser engine inches forward". InfoWorld. Archived from the original on March 16, 2016. Retrieved March 15, 2016.
- ^ Lardinois, Frederic (April 3, 2015). "Mozilla And Samsung Team Up To Develop Servo, Mozilla's Next-Gen Browser Engine For Multicore Processors". TechCrunch. Archived from the original on September 10, 2016. Retrieved June 25, 2017.
- ^ Bryant, David (October 27, 2016). "A Quantum Leap for the web". Medium. Archived from the original on December 9, 2020. Retrieved October 27, 2016.
- ^ Balbaert, Ivo (May 27, 2015). Rust Essentials. Packt Publishing. p. 6. ISBN 978-1785285769. Retrieved March 21, 2016.
- ^ Frank, Denis (December 5, 2013). "Using HyperLogLog to Detect Malware Faster Than Ever". OpenDNS Security Labs. Archived from the original on August 14, 2017. Retrieved March 19, 2016.
- ^ Denis, Frank (October 4, 2013). "ZeroMQ: Helping us Block Malicious Domains in Real Time". OpenDNS Security Labs. Archived from the original on August 14, 2017. Retrieved March 19, 2016.
- ^ Garbutt, James (January 27, 2019). "First thoughts on Deno, the JavaScript/TypeScript run-time". 43081j.com. Archived from the original on November 7, 2020. Retrieved September 27, 2019.
- ^ Yegulalp, Serdar. "Rust's Redox OS could show Linux a few new tricks". infoworld. Archived from the original on March 21, 2016. Retrieved March 21, 2016.
- ^ "Introduction to Theseus". Theseus OS Book. Retrieved July 11, 2021.
{{cite web}}
: CS1 maint: url-status (link) - ^ "Google Fushcia's source code". Google Git. Retrieved July 2, 2021.
{{cite web}}
: CS1 maint: url-status (link) - ^ Sei, Mark (October 10, 2018). "Fedora 29 new features: Startis now officially in Fedora". Marksei, Weekly sysadmin pills. Archived from the original on April 13, 2019. Retrieved May 13, 2019.
- ^ "RHEL 8: Chapter 8. Managing layered local storage with Stratis". October 10, 2018. Archived from the original on April 13, 2019. Retrieved April 13, 2019.
- ^ "rust-for-linux.vger.kernel.org archive mirror". lore.kernel.org. Retrieved March 24, 2022.
- ^ Howarth, Jesse (February 4, 2020). "Why Discord is switching from Go to Rust". Archived from the original on June 30, 2020. Retrieved April 14, 2020.
- ^ Vishnevskiy, Stanislav (July 6, 2017). "How Discord Scaled Elixir to 5,000,000 Concurrent Users". Discord Blog.
- ^ Nichols, Shaun (June 27, 2018). "Microsoft's next trick? Kicking things out of the cloud to Azure IoT Edge". The Register. Archived from the original on September 27, 2019. Retrieved September 27, 2019.
- ^ "Ruffle". Ruffle. Archived from the original on January 26, 2021. Retrieved April 14, 2021.
- ^ terminusdb/terminusdb-store, TerminusDB, December 14, 2020, archived from the original on December 15, 2020, retrieved December 14, 2020
- ^ "Firecracker – Lightweight Virtualization for Serverless Computing". Amazon Web Services. November 26, 2018. Retrieved January 2, 2022.
- ^ "Announcing the General Availability of Bottlerocket, an open source Linux distribution built to run containers". Amazon Web Services. August 31, 2020. Retrieved January 2, 2022.
- ^ "Getting Started". rust-lang.org. Archived from the original on November 1, 2020. Retrieved October 11, 2020.
- ^ "Community". www.rust-lang.org. Retrieved January 3, 2022.
- ^ "RustConf 2020 - Thursday, August 20". rustconf.com. Archived from the original on August 25, 2019. Retrieved August 25, 2019.
- ^ Rust Belt Rust. Dayton, Ohio. October 18, 2019. Archived from the original on May 14, 2019. Retrieved May 14, 2019.
- ^ RustFest. Barcelona, Spain: asquera Event UG. 2019. Archived from the original on April 24, 2019. Retrieved May 14, 2019.
- ^ "Oxidize Global". Oxidize Berlin Conference. Retrieved February 1, 2021.
- ^ Krill, Paul. "Rust language moves to independent foundation". InfoWorld. Archived from the original on April 10, 2021. Retrieved April 10, 2021.
- ^ Vaughan-Nichols, Steven J. (April 9, 2021). "AWS's Shane Miller to head the newly created Rust Foundation". ZDNet. Archived from the original on April 10, 2021. Retrieved April 10, 2021.
- ^ Vaughan-Nichols, Steven J. (November 17, 2021). "Rust Foundation appoints Rebecca Rumbul as executive director". ZDNet. Retrieved November 18, 2021.
- ^ "The Rust programming language now has its own independent foundation". TechRepublic. February 10, 2021. Retrieved November 18, 2021.
Further reading[edit]
- Klabnik, Steve; Nichols, Carol (August 12, 2019). The Rust Programming Language (Covers Rust 2018). No Starch Press. ISBN 978-1-7185-0044-0. (online version)
- Blandy, Jim; Orendorff, Jason (2017). Programming Rust: Fast, Safe Systems Development. O'Reilly Media. ISBN 978-1-4919-2728-1.
External links[edit]
- Rust (programming language)
- 2010 software
- Concurrent programming languages
- Free compilers and interpreters
- Free software projects
- Functional languages
- High-level programming languages
- Mozilla
- Multi-paradigm programming languages
- Pattern matching programming languages
- Procedural programming languages
- Programming languages created in 2010
- Software using the Apache license
- Software using the MIT license
- Statically typed programming languages
- Systems programming languages