freeCodeCamp/guide/chinese/rust/installing-rust/index.md

34 lines
905 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Installing Rust
localeTitle: 安装Rust
---
# 安装Rust
使用`rustup`是Rust安装的首选。 `rustup`为您的系统安装和管理Rust。
## 在Windows中安装Rust
访问[rustup网站](https://rustup.rs)并下载`rustup-init.exe` 。安装它然后你应该准备好了!
## 在其他操作系统中安装RustMac OS XLinuxBSDUnix
打开终端并输入以下命令:
```sh
curl https://sh.rustup.rs -sSf | sh
```
这将获取`rustup`安装程序,然后获取您需要的所有内容。
# 验证安装
安装`rustup`将安装与rust相关的所有内容但最重要的是这意味着安装编译器和包管理器。要验证是否已安装所有内容请运行以下命令
```sh
cargo version
```
你现在可以使用Rust了
# 更多信息
要了解有关安装过程的更多信息,请访问 https://www.rust-lang.org/en-US/install.html