Skip to content

Commit 966313f

Browse files
fix(lang/rust): add note about installing wasip2 target with rustup
1 parent ae1cf89 commit 966313f

File tree

1 file changed

+8
-0
lines changed
  • component-model/src/language-support

1 file changed

+8
-0
lines changed

component-model/src/language-support/rust.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ available targets in the toolchain:
1111
[wasip1]: https://github.com/WebAssembly/WASI/tree/main/legacy
1212
[wasip2]: https://github.com/WebAssembly/WASI/tree/main/wasip2
1313

14+
> [!NOTE]
15+
> To use the targets above, ensure that they are enabled via the Rust toolchain (e.g. `rustup`).
16+
>
17+
> For example, to add the `wasm32-wasip2` target:
18+
> ```
19+
> rustup target add wasm32-wasip2
20+
> ```
21+
1422
With built-in support, Rust code (and the standard library) can compile to WebAssembly with native
1523
tooling:
1624

0 commit comments

Comments
 (0)