Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rustc-dev-guide.rust-lang.org
Getting Started Thank you for your interest in contributing to Rust! There are many ways to contribute, and we appreciate all of them. If this is your first time contributing, the walkthrough chapter can give you a good example of how a typ...
Guide to Rustc Development Book 2024-01-01 ~5 min read
rustc-dev-guide.rust-lang.org
About this guide This guide is meant to help document how rustc – the Rust compiler – works, as well as to help new contributors get involved in rustc development. There are several parts to this guide: 1. Building and debugging rustc: Cont...
Guide to Rustc Development Book 2024-01-01 ~3 min read
rustc-dev-guide.rust-lang.org
How to build and run the compiler For profile = "library" users, or users who use download-rustc = true | "if-unchanged", please be advised that the ./x test library/std flow where download-rustc is active (i.e. no compiler changes) is curr...
Guide to Rustc Development Book 2024-01-01 ~12 min read
rustc-dev-guide.rust-lang.org
Quickstart This is a quickstart guide about getting the compiler running. For more information on the individual steps, see the other pages in this chapter. First, clone the repository: git clone https://github.com/rust-lang/rust.git cd rus...
Guide to Rustc Development Book 2024-01-01 ~1 min read
rustc-dev-guide.rust-lang.org
Prerequisites Dependencies See the rust-lang/rust INSTALL. Hardware You will need an internet connection to build. The bootstrapping process involves updating git submodules and downloading a beta compiler. It doesn't need to be super fast,...
Guide to Rustc Development Book 2024-01-01 ~1 min read
rustc-dev-guide.rust-lang.org
Suggested workflows The full bootstrapping process takes quite a while. Here are some suggestions to make your life easier. Installing a pre-push hook CI will automatically fail your build if it doesn't pass tidy, our internal tool for ensu...
Guide to Rustc Development Book 2024-01-01 ~13 min read
rustc-dev-guide.rust-lang.org
Build distribution artifacts You might want to build and package up the compiler for distribution. You’ll want to run this command to do it: ./x dist Install from source You might want to prefer installing Rust (and tools configured in your...
Guide to Rustc Development Book 2024-01-01 ~1 min read
rustc-dev-guide.rust-lang.org
Building documentation This chapter describes how to build documentation of toolchain components, like the standard library (std) or the compiler (rustc). • Document everything This uses rustdoc from the beta toolchain, so will produce (sli...
Guide to Rustc Development Book 2024-01-01 ~1 min read
rustc-dev-guide.rust-lang.org
Rustdoc overview rustdoc lives in-tree with the compiler and standard library. This chapter is about how it works. For information about Rustdoc's features and how to use them, see the Rustdoc book. For more details about how rustdoc works,...
Guide to Rustc Development Book 2024-01-01 ~6 min read
rustc-dev-guide.rust-lang.org
Adding a new target These are a set of steps to add support for a new target. There are numerous end states and paths to get there, so not all sections may be relevant to your desired goal. See also the associated documentation in the targe...
Guide to Rustc Development Book 2024-01-01 ~3 min read
rustc-dev-guide.rust-lang.org
Optimized build of the compiler There are multiple additional build configuration options and techniques that can be used to compile a build of rustc that is as optimized as possible (for example when building rustc for a Linux distribution...
Guide to Rustc Development Book 2024-01-01 ~3 min read
rustc-dev-guide.rust-lang.org
Testing the compiler The Rust project runs a wide variety of different tests, orchestrated by the build system (./x test). This section gives a brief overview of the different testing tools. Subsequent chapters dive into running tests and a...
Guide to Rustc Development Book 2024-01-01 ~4 min read
rustc-dev-guide.rust-lang.org
Running tests You can run the entire test collection using x. But note that running the entire test collection is almost never what you want to do during local development because it takes a really long time. For local development, see the...
Guide to Rustc Development Book 2024-01-01 ~9 min read
rustc-dev-guide.rust-lang.org
Testing with Docker The src/ci/docker directory includes Docker image definitions for Linux-based jobs executed on GitHub Actions (non-Linux jobs run outside Docker). You can run these jobs on your local development machine, which can be he...
Guide to Rustc Development Book 2024-01-01 ~3 min read
rustc-dev-guide.rust-lang.org
Testing with CI The primary goal of our CI system is to ensure that the main branch of rust-lang/rust is always in a valid state by passing our test suite. From a high-level point of view, when you open a pull request at rust-lang/rust, the...
Guide to Rustc Development Book 2024-01-01 ~18 min read
rustc-dev-guide.rust-lang.org
Adding new tests In general, we expect every PR that fixes a bug in rustc to come accompanied by a regression test of some kind. This test should fail in main but pass after the PR. These tests are really useful for preventing us from repea...
Guide to Rustc Development Book 2024-01-01 ~6 min read
rustc-dev-guide.rust-lang.org
Best practices for writing tests This chapter describes best practices related to authoring and modifying tests. We want to make sure the tests we author are easy to understand and modify, even several years later, without needing to consul...
Guide to Rustc Development Book 2024-01-01 ~6 min read
rustc-dev-guide.rust-lang.org
Compiletest Introduction compiletest is the main test harness of the Rust test suite. It allows test authors to organize large numbers of tests (the Rust compiler has many thousands), efficient test execution (parallel execution is supporte...
Guide to Rustc Development Book 2024-01-01 ~24 min read
rustc-dev-guide.rust-lang.org
UI tests UI tests are a particular test suite of compiletest. Introduction The tests in tests/ui are a collection of general-purpose tests which primarily focus on validating the console output of the compiler, but can be used for many othe...
Guide to Rustc Development Book 2024-01-01 ~19 min read
rustc-dev-guide.rust-lang.org
Compiletest directives Directives are special comments that tell compiletest how to build and interpret a test. They may also appear in rmake.rs run-make tests. They are normally put after the short comment that explains the point of this t...
Guide to Rustc Development Book 2024-01-01 ~18 min read
"I think you are inventing provenance for integers. Please, let's not."

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.