Skip to content

Commit

Permalink
Update index.md to reflect changes to Rust's wasi targets (#26)
Browse files Browse the repository at this point in the history
* Update index.md to reflect changes to Rust's wasi targets

* Update pre-built site

---------

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
  • Loading branch information
mav3ri3k and alexcrichton authored Sep 30, 2024
1 parent b72b405 commit 481a3ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ <h2>Example</h2>
</span></code></pre>
<p>and compile/run it with:</p>
<pre style="background-color:#2b303b;">
<code><span style="color:#8fa1b3;">$</span><span style="color:#c0c5ce;"> rustup target add wasm32-wasi
</span><span style="color:#8fa1b3;">$</span><span style="color:#c0c5ce;"> rustc hello.rs</span><span style="color:#bf616a;"> --target</span><span style="color:#c0c5ce;"> wasm32-wasi
<code><span style="color:#8fa1b3;">$</span><span style="color:#c0c5ce;"> rustup target add wasm32-wasip1
</span><span style="color:#8fa1b3;">$</span><span style="color:#c0c5ce;"> rustc hello.rs</span><span style="color:#bf616a;"> --target</span><span style="color:#c0c5ce;"> wasm32-wasip1
</span><span style="color:#8fa1b3;">$</span><span style="color:#c0c5ce;"> wasmtime hello.wasm
</span><span style="color:#8fa1b3;">Hello,</span><span style="color:#c0c5ce;"> world!
</span></code></pre>
Expand Down
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ fn main() {
and compile/run it with:

```sh
$ rustup target add wasm32-wasi
$ rustc hello.rs --target wasm32-wasi
$ rustup target add wasm32-wasip1
$ rustc hello.rs --target wasm32-wasip1
$ wasmtime hello.wasm
Hello, world!
```
Expand Down

0 comments on commit 481a3ae

Please sign in to comment.