Empowering everyone to build reliable and efficient software. https://www.rust-lang.org
  • Rust 95.8%
  • Shell 0.9%
  • C 0.9%
  • JavaScript 0.6%
  • Python 0.4%
  • Other 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bors f248f40387 Auto merge of #160524 - clubby789:opt-level-opt-none, r=RalfJung
mir-transform: Treat `optimize(none)` the same as `opt-level=0`



cc @RalfJung
2026-09-05 20:19:46 +00:00
.github Introduce LLM policy in PR template, book and CONTRIBUTING.md (#17641) 2026-09-01 08:23:53 +00:00
compiler Auto merge of #160524 - clubby789:opt-level-opt-none, r=RalfJung 2026-09-05 20:19:46 +00:00
library Auto merge of #162333 - Zalathar:rollup-DdpfsFl, r=Zalathar 2026-09-05 17:04:57 +00:00
LICENSES Synchronize Unicode license text from unicode.org 2024-11-20 00:54:12 -08:00
src Auto merge of #162333 - Zalathar:rollup-DdpfsFl, r=Zalathar 2026-09-05 17:04:57 +00:00
tests Auto merge of #160524 - clubby789:opt-level-opt-none, r=RalfJung 2026-09-05 20:19:46 +00:00
.clang-format Add .clang-format 2024-06-26 05:56:00 +08:00
.editorconfig editorconfig: css uses tabs 2026-03-11 18:07:27 -05:00
.git-blame-ignore-revs std: connect sys::sync::futex and drop the pal declarations 2026-07-29 11:31:52 +03:00
.gitattributes Mark .pp files as Rust 2025-03-29 12:39:06 +01:00
.gitignore Add gram config to gitignore 2026-08-24 21:12:51 -04:00
.gitmodules Update to LLVM 23 2026-08-04 10:22:35 -04:00
.ignore change config.toml to bootstrap.toml for bootstrap module 2025-03-17 12:56:41 +05:30
.mailmap Update mailmap for Will Crichton and Petr Hosek 2026-09-01 11:17:48 +02:00
AGENTS.md use compact bullet lists for external doc references 2026-08-14 08:46:37 +02:00
bootstrap.example.toml Allow configuring PGO for Clippy 2026-08-18 18:57:22 +02:00
Cargo.lock Auto merge of #162333 - Zalathar:rollup-DdpfsFl, r=Zalathar 2026-09-05 17:04:57 +00:00
Cargo.toml chore: fix lint cargo::manual_readme 2026-08-26 20:36:24 -04:00
CLAUDE.md Add a CLAUDE.md that links directly to AGENTS.md. 2026-08-12 19:42:56 +02:00
CODE_OF_CONDUCT.md
configure Ensure ./configure works when configure.py path contains spaces 2024-02-16 18:57:22 +00:00
CONTRIBUTING.md Introduce LLM policy in PR template, book and CONTRIBUTING.md (#17641) 2026-09-01 08:23:53 +00:00
COPYRIGHT dist: Re-work how we describe the licence of Rust in our distributions 2024-12-09 10:18:55 +00:00
INSTALL.md Rename rust.allocator setting to build.allocator 2026-07-30 13:30:20 +01:00
LICENSE-APACHE
license-metadata.json [PAC] Update license-metadata.json 2026-08-17 08:28:57 +00:00
LICENSE-MIT dist: Re-work how we describe the licence of Rust in our distributions 2024-12-09 10:18:55 +00:00
package.json Update browser-ui-test version to 0.25.0 2026-07-27 23:54:58 +02:00
README.md Add direct link to rustc-dev-guide in README 2026-02-14 23:27:12 -08:00
RELEASES.md Port 1.98.1 release notes into main 2026-08-31 08:13:51 -04:00
REUSE.toml [PAC] Provide information on where the SipHash tests were derived from 2026-08-17 08:28:57 +00:00
rust-bors.toml Switch dist-aarch64-linux to EC2 and update dist-x86_64-linux 2026-08-31 09:00:24 -04:00
rustfmt.toml Update comment_width in rustfmt.toml 2026-09-01 18:15:03 +02:00
triagebot.toml let people change rustc-dev-guide in-tree 2026-09-04 17:14:00 +00:00
typos.toml Fix MSVC drectve exports for decorated symbols 2026-06-29 11:35:56 +08:00
x use extended regex syntax 2026-03-26 12:02:30 +00:00
x.ps1 use & instead of start-process in x.ps1 2023-12-09 09:46:16 -05:00
x.py Reformat Python code with ruff 2024-12-04 23:03:44 +01:00
yarn.lock Update browser-ui-test version to 0.25.1 2026-08-16 00:03:18 +02:00

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

  • Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.

  • Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

  • Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).

Quick Start

Read "Installation" from The Book.

Installing from Source

If you really want to install from source (though this is not recommended), see INSTALL.md.

Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

Contributing

See CONTRIBUTING.md.

For a detailed explanation of the compiler's architecture and how to begin contributing, see the rustc-dev-guide.

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

Trademark

The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").

If you want to use these names or brands, please read the Rust language trademark policy.

Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.