# 安装

<https://rustlang-cn.org/office/rust/book/getting-started/ch01-01-installation.html>

1.`curl https://sh.rustup.rs -sSf | sh`

2.`source $HOME/.cargo/env`

3.`rustc --version`如果显示版本号、提交的 hash 值和提交时间，恭喜你！则 Rust 已成功安装！

4.`cargo --version`如果你看到了版本号，一切 OK

## 更新和卸载

`rustup update`、`rustup self uninstall`

## 看本地文档

运行 `rustup doc` 在浏览器中查看本地文档。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://im-qianuxn.gitbook.io/pytorch/ji-suan-ji/rust/start.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
