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

Update run.mdx to have clearer instructions #79

Merged
merged 1 commit into from
May 27, 2024
Merged
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
18 changes: 9 additions & 9 deletions pages/javascript-sdk/tutorials/run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ The next step is to compile this Rust program to WebAssembly. This will give us
an executable that can be run anywhere Wasmer runs, although for our use case we
are mostly concerned about running it in the browser.

<Callout type="info">
If you haven't already, you may need to [install Rust][rust] and use `rustup` to
add the `wasm32-wasi` target:

```sh copy
rustup target add wasm32-wasi
```
</Callout>

```sh copy
cargo build --release --target=wasm32-wasi
```
Expand All @@ -184,15 +193,6 @@ $ file target/wasm32-wasi/release/*.wasm
target/wasm32-wasi/release/markdown-renderer.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)
```

<Callout type="info">
If you haven't already, you may need to [install Rust][rust] and use `rustup` to
add the `wasm32-wasi` target:

```sh copy
rustup target add wasm32-wasi
```
</Callout>

### TypeScript Setup & Initialization

Now we've got a `*.wasm` binary, let's start implementing the app's logic.
Expand Down
Loading