# Cheat Sheet

## Install bleeding edge rust

{% hint style="warning" %}
Do not use this installtion on production.
{% endhint %}

Run the installer.

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

After a few seconds, you will see the following screen.

```
Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
```

Press `2` to `Customize installation`.

Answers the question as follows.

```
Default host triple?
x86_64-unknown-linux-gnu

Default toolchain? (stable/beta/nightly/none)
nightly

Profile (which tools and data to install)? (minimal/default/complete)
complete

Modify PATH variable? (y/n)
y
```

Then hit `1` to `Proceed with installation (default)`.

Update your env vars.

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

### References

<https://doc.rust-lang.org/cargo/getting-started/installation.html#install-rust-and-cargo>

\--no-prompt <https://github.com/rust-lang/rustup/issues/1031>


---

# 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://www.devops.buzz/public/rust/cheat-sheet.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.
