rust README

The project's README from github.com/rust-lang/rust. As one markdown file: README.md.

The Rust Programming Language: A language empowering everyone to build reliable and efficient software

Website | Getting started | Learn | Documentation | Contributing

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

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.

rust (rust-lang/rust)

Searching Database…

120.4K ·GitHub
这是什么?这是 Rust 编程语言的主要源代码仓库,包含编译器(rustc)、标准库和文档。
这是编译器本身,还是我要添加到项目里的库?它是编译器工具链和标准库的源代码,而不是需要作为依赖添加的东西。你需要安装 Rust 工具链本身,然后使用 Cargo 来构建和管理自己的项目。
我要怎么安装 Rust?请参考《The Rust Book》中的“Installation”章节,其中介绍了如何安装 Rust 工具链(通常通过 rustup)。
开始使用前,除了工具链本身,还需要别的东西吗?一开始不需要额外的工具。工具链已经自带 Cargo 作为包管理器和构建工具,还包括用于代码格式化的 rustfmt、用于代码检查的 Clippy,以及用于编辑器支持的 rust-analyzer。
推荐从源代码构建 Rust 吗?不推荐。README 明确提醒,从源代码安装并不推荐,大多数用户应直接安装预编译的工具链。
Rust 是否支持跨平台,包括嵌入式设备?支持。Rust 设计上兼顾高速度和低内存占用,适合关键服务和嵌入式设备,也适用于 Windows、macOS 和 Linux 等桌面平台。
什么是 Cargo?Cargo 是 Rust 内置的包管理器和构建工具,用于管理依赖、编译代码和运行测试。
除了编译器,Rust 工具链还自带哪些工具?工具链包括用于自动格式化的 rustfmt、用于代码检查的 Clippy,以及用于编辑器集成的 rust-analyzer。
Rust 没有垃圾回收器,为什么还被认为是内存安全的?Rust 的所有权模型和丰富的类型系统会在编译阶段保证内存和线程安全,在程序运行之前就能发现许多错误。
What are similar projects?goose, mquickjs, carbon-lang, CalcKernel, Odin, Singeli, sway, lua
Creator
rust-lang
Size
1000.5 MB
Stars
120.4K
Age
16y
Commits · 90 Days