https://github.com/rust-lang-cn/std-cn
Rust 标准库文档中文版——Chinese translation of The Rust Library
https://github.com/rust-lang-cn/std-cn
rust rust-library
Last synced: 24 days ago
JSON representation
Rust 标准库文档中文版——Chinese translation of The Rust Library
- Host: GitHub
- URL: https://github.com/rust-lang-cn/std-cn
- Owner: rust-lang-cn
- License: apache-2.0
- Created: 2022-01-19T16:24:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-28T16:43:32.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T12:42:11.488Z (about 2 months ago)
- Topics: rust, rust-library
- Homepage: https://rustwiki.org/zh-CN/std
- Size: 51 MB
- Stars: 58
- Watchers: 4
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-Apache-2.0
Awesome Lists containing this project
README
# Rust 标准库文档中文版
[](https://raw.githubusercontent.com/rust-lang-cn/std-cn/main/LICENSE-MIT)
[](https://raw.githubusercontent.com/rust-lang-cn/std-cn/main/LICENSE-APACHE)

**Rust 标准库文档中文版**是 Rust 标准库文档的 HTML 文件(目前已更新到 1.71.0 版),可直接使用浏览器打开,或者阅读[在线版本][std-cn]。
注意,本标准库 HTML 文件使用 [Rust 标准库中文版][rust-library-i18n]生成,中文内容基于机器翻译,不确保所有翻译内容都准确,中文版的最新版本也以该源码仓库的为准。
## 离线阅读说明
克隆仓库并进入到仓库目录:
```bash
$ git clone https://github.com/rust-lang-cn/std-cn
$ cd std-cn
```标准库内容在 `doc/std` 目录中。可使用浏览器打开来查看内容。
*Firefox*:
```console
$ firefox doc/std/index.html # Linux
$ open -a "Firefox" doc/std/index.html # macOS
$ Start-Process "firefox.exe" .\doc\std\index.html # Windows (PowerShell)
$ start firefox.exe .\doc\std\index.html # Windows (Cmd)
```*Chrome*:
```console
$ google-chrome doc/std/index.html # Linux
$ open -a "Google Chrome" doc/std/index.html # macOS
$ Start-Process "chrome.exe" .\doc\std\index.html # Windows (PowerShell)
$ start chrome.exe .\doc\std\index.html # Windows (Cmd)
```## 如何贡献
**Rust 标准库文档中文版**由 **Rust 标准库中文版**的源文件生成得到,故本仓库不对内容额外调整,若是发现文档内容有误,可到[Rust 标准库中文版][rust-library-i18n]发起报告。
## 授权协议
**Rust 标准库文档**中文版使用以下两种协议的任一种进行授权:
- Apache 2.0 授权协议,(LICENSE-APACHE 或 http://www.apache.org/licenses/LICENSE-2.0)
- MIT 授权协议 (LICENSE-MIT 或 http://opensource.org/licenses/MIT)
可以根据自己选择来定。除非您有另外说明,否则您在本仓库提交的任何贡献均按上述方式进行双重许可授权,就如 Apache 2.0 协议所规定那样,而无需附加任何其他条款或条件。
[std-cn]: https://rustwiki.org/zh-CN/std/
[rust-library-i18n]: https://github.com/wtklbm/rust-library-i18n