站内导读
定位:Rust 语言的主源码仓库,由 Rust 项目与 Rust 基金会维护,收录编译器、标准库与文档,适合需要从源码构建工具链或参与语言本身开发的人。
核心能力
- 编译器 rustc、标准库与文档同处一个仓库,语言与库的改动可以一起提交。
- 类型系统与所有权模型在编译期检查内存和线程安全,把错误提前暴露。
- 配套工具链包括包管理与构建工具 Cargo、格式化工具 rustfmt、静态检查工具 Clippy 和编辑器支持 rust-analyzer。
- 安装细节见 INSTALL.md,贡献流程见 CONTRIBUTING.md,编译器架构见 rustc-dev-guide。
适用人群:需要从源码构建 Rust 的发版与平台维护者,以及编译器、标准库的贡献者;需准备可用的引导工具链和受支持的主机平台,日常使用应按官方安装文档进行。
位置づけ:Rust プログラミング言語のメインソースリポジトリで、Rust プロジェクトと Rust Foundation が維持しています。コンパイラ、標準ライブラリ、ドキュメントを収録し、ソースからツールチェーンをビルドしたい場合や、言語そのものの開発に携わりたい場合の拠点です。
主な機能
- コンパイラ(rustc)と標準ライブラリがひとつのツリーにあり、言語とライブラリの変更をまとめて反映できます。
- 豊かな型システムと所有権モデルにより、メモリ安全性とスレッド安全性を実行時ではなくコンパイル時にチェックします。
- コンパイラ周辺のツール群:パッケージ管理とビルドのための Cargo、フォーマッタの rustfmt、静的解析の Clippy、エディタ支援の rust-analyzer。
- 導入手順やコントリビューションの流れは INSTALL.md、CONTRIBUTING.md、rustc-dev-guide にまとめられています。
対象ユーザー:ソースから Rust をビルドするリリース担当者やプラットフォーム保守担当者、コンパイラや標準ライブラリへのコントリビューター。利用可能なブートストラップ用ツールチェーンとサポート対象のホストプラットフォームが必要です。日常的な利用は公式のインストール手順に従ってください。
정의: Rust 프로그래밍 언어의 메인 소스 저장소로, Rust 프로젝트와 Rust 재단이 유지보수합니다. 컴파일러, 표준 라이브러리, 문서를 담고 있어 소스에서 툴체인을 빌드하거나 언어 자체의 개발에 참여하려는 경우의 거점입니다.
핵심 기능
- 컴파일러(rustc)와 표준 라이브러리가 하나의 트리에 있어 언어와 라이브러리의 변경을 함께 반영할 수 있습니다.
- 풍부한 타입 시스템과 소유권 모델로 메모리 안전성과 스레드 안전성을 런타임이 아닌 컴파일 시점에 검사합니다.
- 컴파일러 주변 도구: 패키지와 빌드를 담당하는 Cargo, 포매터 rustfmt, 정적 분석 도구 Clippy, 에디터 지원 도구 rust-analyzer.
- 설치와 기여 절차는 INSTALL.md, CONTRIBUTING.md, rustc-dev-guide에 정리되어 있습니다.
대상 사용자: 소스에서 Rust를 빌드하는 릴리스 담당자와 플랫폼 유지보수자, 컴파일러와 표준 라이브러리 기여자. 사용 가능한 부트스트랩 툴체인과 지원되는 호스트 플랫폼이 필요하며, 일상적인 사용은 공식 설치 문서를 따르는 것이 좋습니다.
What it is: The main source repository of the Rust programming language, maintained by the Rust project and the Rust Foundation. It holds the compiler, the standard library and the documentation, and is the place to go when you want to build a toolchain from source or work on the language itself.
Key capabilities
- Compiler (
rustc) and standard library live in one tree, so language and library changes can land together. - Rich type system plus ownership model check memory and thread safety at compile time rather than at runtime.
- Tooling around the compiler: Cargo for packages and builds, rustfmt, Clippy, and rust-analyzer for editors.
- Startup and contributor paths documented in INSTALL.md, CONTRIBUTING.md and the rustc-dev-guide.
README · 详细文档
来源 · 查看原文
[Website][Rust] | [Getting started] | [Learn] | [Documentation] | [Contributing]
This is the main source code repository for [Rust]. It contains the compiler, standard library, and documentation.
[Rust]: https://www.rust-lang.org/ [Getting Started]: https://www.rust-lang.org/learn/get-started [Learn]: https://www.rust-lang.org/learn [Documentation]: https://www.rust-lang.org/learn#learn-use [Contributing]: CONTRIBUTING.md
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]).
[Cargo]: https://github.com/rust-lang/cargo [rustfmt]: https://github.com/rust-lang/rustfmt [Clippy]: https://github.com/rust-lang/rust-clippy [rust-analyzer]: https://github.com/rust-lang/rust-analyzer
Quick Start
Read ["Installation"] from [The Book].
["Installation"]: https://doc.rust-lang.org/book/ch01-01-installation.html [The Book]: https://doc.rust-lang.org/book/index.html
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][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][trademark-policy].
Third-party logos may be subject to third-party copyrights and trademarks. See [Licenses][policies-licenses] for details.
[rust-foundation]: https://rustfoundation.org/ [trademark-policy]: https://rustfoundation.org/policy/rust-trademark-policy/ [policies-licenses]: https://www.rust-lang.org/policies/licenses