Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
Rust 2015 Rust 2015 has a theme of "stability". It commenced with the release of 1.0, and is the "default edition". The edition system was conceived in late 2017, but Rust 1.0 was released in May of 2015. As such, 2015 is the edition that y...
The Rust Edition Guide Book 2024-01-01 ~1 min read
doc.rust-lang.org
Advanced migration strategies How migrations work cargo fix --edition works by running the equivalent of cargo check on your project with special lints enabled which will detect code that may not compile in the next edition. These lints inc...
The Rust Edition Guide Book 2024-01-01 ~8 min read
doc.rust-lang.org
Transitioning an existing project to a new edition Rust includes tooling to automatically transition a project from one edition to the next. It will update your source code so that it is compatible with the next edition. Briefly, the steps...
The Rust Edition Guide Book 2024-01-01 ~5 min read
doc.rust-lang.org
Creating a new project A new project created with Cargo is configured to use the latest edition by default: $ cargo new foo Creating binary (application) `foo` package note: see more `Cargo.toml` keys and their definitions at https://doc.ru...
The Rust Edition Guide Book 2024-01-01 ~1 min read
doc.rust-lang.org
What are Editions? In May 2015, the release of Rust 1.0 established "stability without stagnation" as a core Rust axiom. Since then, Rust has committed to a pivotal rule: once a feature is released through stable, contributors will continue...
The Rust Edition Guide Book 2024-01-01 ~2 min read
doc.rust-lang.org
Introduction Welcome to The Rust Edition Guide! "Editions" are Rust's way of introducing changes into the language that would not otherwise be backwards compatible. In this guide, we'll discuss: • What editions are • Which changes are conta...
The Rust Edition Guide Book 2024-01-01 ~1 min read
doc.rust-lang.org
Glossary Abstract syntax tree An ‘abstract syntax tree’, or ‘AST’, is an intermediate representation of the structure of the program when the compiler is compiling it. Alignment The alignment of a value specifies what addresses values are p...
The Rust Reference Book 2024-01-01 ~9 min read
doc.rust-lang.org
Test summary The following is a summary of the total tests that are linked to individual rule identifiers within the reference. {{summary-table}}
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
Influences Rust is not a particularly original language, with design elements coming from a wide range of sources. Some of these are listed below (including elements that have since been removed): • SML, OCaml: algebraic data types, pattern...
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
Appendix: Macro follow-set ambiguity formal specification This page documents the formal specification of the follow rules for Macros By Example. They were originally specified in RFC 550, from which the bulk of this text is copied, and exp...
The Rust Reference Book 2024-01-01 ~13 min read
doc.rust-lang.org
Syntax index This appendix provides an index of tokens and common forms with links to where those elements are defined. Keywords | Keyword | Use | |---------------|-----| | _ | wildcard pattern, inferred const, inferred type, placeholder li...
The Rust Reference Book 2024-01-01 ~9 min read
doc.rust-lang.org
Grammar summary The following is a summary of the grammar production rules. For details on the syntax of this grammar, see [notation.grammar.syntax]. {{ grammar-summary }}
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
Appendices
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
The Rust runtime This section documents features that define some aspects of the Rust runtime. The global_allocator attribute The global_allocator [attribute][attributes] selects a [memory allocator][std::alloc]. [!EXAMPLE] use core::alloc:...
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
Application binary interface (ABI) This section documents features that affect the ABI of the compiled output of a crate. See extern functions for information on specifying the ABI for exporting functions. See external blocks for informatio...
The Rust Reference Book 2024-01-01 ~2 min read
doc.rust-lang.org
Constant evaluation Constant evaluation is the process of computing the result of expressions during compilation. Only a subset of all expressions can be evaluated at compile-time. Constant expressions Certain forms of expressions, called c...
The Rust Reference Book 2024-01-01 ~7 min read
doc.rust-lang.org
Behavior not considered unsafe The Rust compiler does not consider the following behaviors unsafe, though a programmer may (should) find them undesirable, unexpected, or erroneous. • Deadlocks • Leaks of memory and other resources • Exiting...
The Rust Reference Book 2024-01-01 ~1 min read
doc.rust-lang.org
Behavior considered undefined Rust code is incorrect if it exhibits any of the behaviors in the following list. This includes code within unsafe blocks and unsafe functions. unsafe only means that avoiding undefined behavior is on the progr...
The Rust Reference Book 2024-01-01 ~9 min read
doc.rust-lang.org
The unsafe keyword The unsafe keyword is used to create or discharge the obligation to prove something safe. Specifically: • It is used to mark code that defines extra safety conditions that must be upheld elsewhere. • This includes unsafe...
The Rust Reference Book 2024-01-01 ~3 min read
doc.rust-lang.org
Unsafety Unsafe operations are those that can potentially violate the memory-safety guarantees of Rust's static semantics. The following language level features cannot be used in the safe subset of Rust: • Dereferencing a raw pointer. • Rea...
The Rust Reference Book 2024-01-01 ~1 min read
"It's amazing how frequent such "rare edge cases" can be. Especially when there are millions of people using billions of files originating from God kno..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.