add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

33
pages.zh/common/rustup.md Normal file
View File

@@ -0,0 +1,33 @@
# rustup
> 安装、管理和更新 Rust 工具链。
> 一些子命令,如 `toolchain`、`target`、`update` 等,有自己的使用文档。
> 更多信息请访问:<https://rust-lang.github.io/rustup>。
- 为您的系统安装 nightly 工具链:
`rustup install nightly`
- 将默认工具链切换为 nightly以便 `cargo``rustc` 命令将使用它:
`rustup default nightly`
- 在当前项目内使用 nightly 工具链,但保持全局设置不变:
`rustup override set nightly`
- 更新所有工具链:
`rustup update`
- 列出已安装的工具链:
`rustup show`
- 使用特定工具链运行 `cargo build`
`rustup run {{toolchain}} cargo build`
- 在默认网页浏览器中打开本地 Rust 文档:
`rustup doc`