Skip to content

Commit

Permalink
Merge pull request #800 from multiversx/rust-setup-2024-01-15
Browse files Browse the repository at this point in the history
Update Rust troubleshooter
  • Loading branch information
andreibancioiu authored Jan 15, 2024
2 parents e0d5ead + 508915a commit 88fe4a5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/sdk-and-tools/troubleshooting/rust-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ If you've installed Rust using your OS package manager:
```bash
# Ubuntu
sudo apt remove cargo
sudo apt remove rustc
sudo apt autoremove
```

Expand All @@ -35,6 +36,12 @@ brew uninstall rust
We never recommend installing Rust using `brew`, especially because it makes it non-trivial to switch between different Rust versions.
:::

If you've installed Rust using `snap`:

```bash
snap remove rustup
```

If you've installed Rust using `mxpy` with a version older than `v9`:

```bash
Expand Down Expand Up @@ -85,7 +92,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Then, choose **Proceed with installation (default)**.

Once Rust is installed, switch to a nightly version and install the `wasm32-unknown-unknown` target:
Once Rust is installed, open a new terminal (shell), then switch to a nightly version and install the `wasm32-unknown-unknown` target:

```bash
rustup default nightly-2023-12-11
Expand Down Expand Up @@ -127,6 +134,14 @@ cargo install multiversx-sc-meta --locked

For a workaround, please follow this [GitHub issue](https://github.com/multiversx/mx-sdk-py-cli/issues/338).

### Handle missing dependencies: build-essential

On Ubuntu, you might also need to install `build-essential`:

```bash
sudo apt-get install build-essential
```

## Check your Rust installation

You can check your Rust installation by invoking `rustup show`:
Expand Down

0 comments on commit 88fe4a5

Please sign in to comment.