File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : post
3
+ title : " Renaming the WASI target in Rust 1.71.0"
4
+ author : Yoshua Wuyts
5
+ release : false
6
+ ---
7
+
8
+ In Rust 1.71 the existing ` wasm32-wasi ` target will be renamed to
9
+ ` wasm32-wasi-preview1 ` . This matches the naming used in the [ WASI Preview
10
+ Framework] [ wpf ] and more accurately captures the evolving nature of the WASI
11
+ targets. By making this change we also prepare Rust to re-adopt the
12
+ ` wasm32-wasi ` target name for the eventual stable WASI 1.0 release.
13
+
14
+ [ wpf ] : https://github.com/WebAssembly/meetings/blob/main/wasi/2023/presentations/2023-02-09-gohman-wasi-roadmap.pdf
15
+
16
+ Work on adding a WASI Preview 2 target to the compiler is currently underway,
17
+ but is not yet complete. We expect this to land in a future release of Rust. The
18
+ target triple for this target will be ` wasm32-wasi-preview2 ` .
19
+
20
+ ## Migrating Targets
21
+
22
+ To upgrade to the new WASI target on Rust 1.71 on nightly you can run the
23
+ following commands using [ rustup] ( https://rustup.rs ) :
24
+
25
+ ``` bash
26
+ $ rustup +nightly target remove wasm32-wasi
27
+ $ rustup upgrade nightly
28
+ $ rustup +nightly target add wasm32-wasi-preview1
29
+ ```
30
+
31
+ Once beta and stable builds are available (expected in ~ 6 and ~ 12 weeks
32
+ respectively) you should be able to replace the word ` nightly ` with either
33
+ ` beta ` or ` stable ` in the instructions.
You can’t perform that action at this time.
0 commit comments