rust-lang / rust

Website | Getting started | Learn | Documentation | Contributing This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

网站 | 入门 | 学习 | 文档 | 贡献。这是 Rust 的主要源代码仓库。它包含了编译器、标准库和文档。

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).

为什么选择 Rust?性能:快速且内存高效,适用于关键服务、嵌入式设备,并可轻松与其他语言集成。可靠性:我们丰富的类型系统和所有权模型确保了内存和线程安全,在编译时减少了错误。生产力:全面的文档、致力于提供出色诊断信息的编译器,以及包括包管理器和构建工具 (Cargo)、自动格式化工具 (rustfmt)、代码检查工具 (Clippy) 和编辑器支持 (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.

快速入门:阅读《Rust 程序设计语言》中的“安装”章节。从源码安装:如果你确实想要从源码安装(尽管不推荐这样做),请参阅 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.

获取帮助:访问 https://www.rust-lang.org/community 查看聊天平台和论坛列表。贡献:请参阅 CONTRIBUTING.md。有关编译器架构的详细说明以及如何开始贡献,请参阅 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.

许可证:Rust 主要根据 MIT 许可证和 Apache 许可证(2.0 版本)的条款进行分发,部分内容受各种类 BSD 许可证的约束。详情请参阅 LICENSE-APACHE、LICENSE-MIT 和 COPYRIGHT。

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.

商标:Rust 基金会拥有并保护 Rust 和 Cargo 的商标及徽标(即“Rust 商标”)。如果你想使用这些名称或品牌,请阅读 Rust 语言商标政策。第三方徽标可能受第三方版权和商标保护。详情请参阅许可证页面。