Mirror of rust-lang/rust
  • Rust 95.8%
  • Shell 0.9%
  • C 0.9%
  • JavaScript 0.6%
  • Python 0.4%
  • Other 1.1%
Find a file
bors 2d20b42b88 Auto merge of #165381 - Zalathar:span-hash, r=jieyouxu
Avoid `Hash::hash` when stable-hashing Span





This PR adjusts `stable_hash_span` to remove all direct calls to `Hash::hash`, to avoid stable-hashing inconsistencies between stage1 and stage2 compilers.

Extracted from https://github.com/rust-lang/rust/pull/165218, because span hashing is particularly sensitive to perf regressions.
2026-11-04 06:11:47 +00:00
.github Rollup merge of #165276 - theemathas:fcw-issue-template-labels, r=Kivooeo 2026-11-01 18:51:39 +01:00
compiler Auto merge of #165381 - Zalathar:span-hash, r=jieyouxu 2026-11-04 06:11:47 +00:00
library Rollup merge of #165203 - xingxue-ibm:aix-disable-test-dynamic-loading-cdylib, r=workingjubilee 2026-11-03 22:10:52 +01:00
LICENSES
src Auto merge of #165423 - weihanglo:update-cargo, r=weihanglo 2026-11-04 02:53:33 +00:00
tests Auto merge of #165436 - JonathanBrouwer:rollup-sNiqmOA, r=JonathanBrouwer 2026-11-03 23:53:57 +00:00
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.ignore
.mailmap
AGENTS.md Clarify AGENTS.md around pushing to a fork 2026-11-01 17:01:18 -08:00
bootstrap.example.toml
Cargo.lock Auto merge of #165378 - ytmimi:rustfmt-v1.12.0, r=jieyouxu 2026-11-03 14:39:48 +00:00
Cargo.toml
CODE_OF_CONDUCT.md
configure
CONTRIBUTING.md
COPYRIGHT
INSTALL.md
LICENSE-APACHE
license-metadata.json
LICENSE-MIT
package.json
README.md
RELEASES.md
REUSE.toml
rust-bors.toml
rustfmt.toml
triagebot.toml Autolabel library modules 2026-11-02 13:34:59 -05:00
typos.toml
x
x.ps1
x.py
yarn.lock

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.