1
Fork 0
Empowering everyone to build reliable and efficient software. Gabriel's commits. https://www.rust-lang.org/
Find a file
Chris Denton 2fff8257ad
Rollup merge of #140077 - xizheyin:issue-139805, r=jieyouxu
Construct OutputType using macro and print [=FILENAME] help info

Closes #139805

Use define_output_types to define variants of OutputType, as well as refactor all of its methods for clarity. This way no variant is missed when pattern matching or output help messages.

On top of that, I optimized for `emit` help messages.

r? ```@jieyouxu```
2025-04-22 01:22:12 +00:00
.github Use rust-cache to speed-up citool compilation 2025-04-15 10:04:25 +02:00
compiler Rollup merge of #140077 - xizheyin:issue-139805, r=jieyouxu 2025-04-22 01:22:12 +00:00
library Auto merge of #140127 - ChrisDenton:rollup-2kye32h, r=ChrisDenton 2025-04-21 19:28:16 +00:00
LICENSES
src Auto merge of #140127 - ChrisDenton:rollup-2kye32h, r=ChrisDenton 2025-04-21 19:28:16 +00:00
tests Rollup merge of #140077 - xizheyin:issue-139805, r=jieyouxu 2025-04-22 01:22:12 +00:00
.clang-format
.editorconfig
.git-blame-ignore-revs git: ignore 60600a6fa4 for blame purposes 2025-04-17 11:50:24 +08:00
.gitattributes
.gitignore
.gitmodules move autodiff from EnzymeAD/Enzyme to our rust-lang/Enzyme soft-fork 2025-04-01 17:17:39 -04:00
.ignore
.mailmap Add myself to mailmap 2025-04-14 14:27:15 +01:00
bootstrap.example.toml apply nit notes 2025-04-15 11:33:11 +03:00
Cargo.lock Auto merge of #139727 - rust-lang:cargo_update, r=Mark-Simulacrum 2025-04-21 12:07:02 +00:00
Cargo.toml
CODE_OF_CONDUCT.md
configure
CONTRIBUTING.md
COPYRIGHT
INSTALL.md
LICENSE-APACHE
license-metadata.json
LICENSE-MIT
README.md
RELEASES.md
REUSE.toml
rust-bors.toml
rustfmt.toml rustfmt does not support use closures yet 2025-04-07 16:53:11 -03:00
triagebot.toml Add option for stable backport poll 2025-04-19 18:13:34 +02:00
x
x.ps1
x.py

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.

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.