站内导读

中文

定位:Rust 语言的主源码仓库,由 Rust 项目与 Rust 基金会维护,收录编译器、标准库与文档,适合需要从源码构建工具链或参与语言本身开发的人。

核心能力

  • 编译器 rustc、标准库与文档同处一个仓库,语言与库的改动可以一起提交。
  • 类型系统与所有权模型在编译期检查内存和线程安全,把错误提前暴露。
  • 配套工具链包括包管理与构建工具 Cargo、格式化工具 rustfmt、静态检查工具 Clippy 和编辑器支持 rust-analyzer。
  • 安装细节见 INSTALL.md,贡献流程见 CONTRIBUTING.md,编译器架构见 rustc-dev-guide。

适用人群:需要从源码构建 Rust 的发版与平台维护者,以及编译器、标准库的贡献者;需准备可用的引导工具链和受支持的主机平台,日常使用应按官方安装文档进行。

README · 详细文档

来源 · 查看原文

<img alt="The Rust Programming Language: A language empowering everyone to build reliable and efficient software" src="https://raw.githubusercontent.com/rust-lang/www.rust-lang.org/master/static/images/rust-social-wide-light.svg" width="50%">

[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

相关项目 · GitHub 热门

查看全部「GitHub 热门」项目 →