Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wasm32-unknown-unknown target on setup #360

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs-src/0.6/src/getting_started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ You can follow the [installation instructions](https://rust-analyzer.github.io/m

## Install Rust

Head over to [https://rust-lang.org](http://rust-lang.org) and install the Rust compiler.
Head over to [https://rust-lang.org](http://rust-lang.org) and install the Rust compiler (preferably using `rustup`).

Once installed, make sure you add the `stable` toolchain and the `wasm32-unknown-unknown` target for web development:

```shell
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
```

We strongly recommend going through the [official Rust book](https://doc.rust-lang.org/book/ch01-00-getting-started.html) _completely_. However, we hope that a Dioxus app can serve as a great first Rust project.

Expand Down
2 changes: 1 addition & 1 deletion docs-src/0.6/src/guide/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We covered the setup instructions in [Getting Started](../getting_started/index.

- Rust is installed
- You have a code editor installed
- The wasm32-unknown-unknown Rust toolchain is installed
- The wasm32-unknown-unknown target is installed
- The `dioxus-cli` is installed and up-to-date
- System-specific dependencies are installed

Expand Down