Watch
1
0
Fork
You've already forked rust-lang-rust
0
mirror of https://github.com/rust-lang/rust.git synced 2026-12-04 14:21:54 +01:00
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.5%
  • Other 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
bors 131d621014 Auto merge of #167021 - JonathanBrouwer:rollup-Z8AUas5, r=JonathanBrouwer
Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#166944 (stdarch subtree update)
 - rust-lang/rust#166689 (Show fn spans for `lint::c_buffer_length`)
 - rust-lang/rust#166983 (Use `InterpResult` instead of `InterpErrorKind`)
 - rust-lang/rust#167003 (remove `CodegenUnitNameBuilder`)
 - rust-lang/rust#167016 (std: Enable flock-based file locking on DragonFly BSD)
 - rust-lang/rust#162295 (Recover shorthand struct literals in if conditions)
 - rust-lang/rust#166597 (explicitly disable vector-packed-decimal feature in s390x naked funct…)
 - rust-lang/rust#166762 (Fix Location::strictly_dominates)
 - rust-lang/rust#166824 (Replace FIXMEs suggesting removal of `box` with a NOTE)
 - rust-lang/rust#166958 (Skip bodyless intrinsics as mono item roots)
 - rust-lang/rust#166960 ([tiny] Avoid ICE in suggestion)
 - rust-lang/rust#167005 (Clean up WrongNamespace handling in intra-doc link resolution)
2026-12-04 00:41:18 +00:00
.github Rollup merge of #166874 - Kobzol:docs-update-renovatebot, r=marcoieni 2026-12-01 19:00:38 +01:00
compiler Auto merge of #167021 - JonathanBrouwer:rollup-Z8AUas5, r=JonathanBrouwer 2026-12-04 00:41:18 +00:00
library Auto merge of #167021 - JonathanBrouwer:rollup-Z8AUas5, r=JonathanBrouwer 2026-12-04 00:41:18 +00:00
LICENSES Synchronize Unicode license text from unicode.org 2024-11-20 00:54:12 -08:00
src Auto merge of #167021 - JonathanBrouwer:rollup-Z8AUas5, r=JonathanBrouwer 2026-12-04 00:41:18 +00:00
tests Auto merge of #167021 - JonathanBrouwer:rollup-Z8AUas5, r=JonathanBrouwer 2026-12-04 00:41:18 +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 Add bootstrap step to build the TPDE plugin 2026-10-16 12:38:15 +00:00
.ignore change config.toml to bootstrap.toml for bootstrap module 2025-03-17 12:56:41 +05:30
.mailmap Add mailmap entry 2026-10-02 11:47:13 +02:00
AGENTS.md Clarify AGENTS.md around pushing to a fork 2026-11-01 17:01:18 -08:00
bootstrap.example.toml Rollup merge of #166819 - haampie-llms:llvm-build-config-lld-main, r=clubby789 2026-12-01 19:00:31 +01:00
Cargo.lock Rollup merge of #166379 - klensy:deps-up-17-11, r=Mark-Simulacrum 2026-11-29 16:03:40 +11:00
Cargo.toml compiletest: Add testing for lint machinery at runtime 2026-11-19 21:37:56 +00:00
CODE_OF_CONDUCT.md Remove the code of conduct; instead link https://www.rust-lang.org/conduct.html 2019-10-05 22:55:19 +02:00
configure Ensure ./configure works when configure.py path contains spaces 2024-02-16 18:57:22 +00:00
CONTRIBUTING.md [blocked] Link to proposed LLM policy in CONTRIBUTING and pull request template 2026-08-02 12:28:14 +02: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 INSTALL.md: use UCRT64 instead of MINGW64 in MSYS2 section 2026-10-06 20:33:17 +03:00
LICENSE-APACHE Remove appendix from LICENCE-APACHE 2019-12-30 14:25:53 +00:00
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.2 2026-09-18 14:55:56 +02:00
README.md Add direct link to rustc-dev-guide in README 2026-02-14 23:27:12 -08:00
RELEASES.md 1.100.1 relnotes 2026-11-24 16:37:19 -05: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 tidy and rustfmt for hashbrown 2026-11-14 10:19:35 +01:00
triagebot.toml Autolabel A-num 2026-12-02 12:47:21 -05:00
typos.toml update rest of config files 2026-11-14 10:19:35 +01: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.3 2026-11-29 14:46:45 +01: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.