You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -39,10 +39,10 @@ and then follow the
39
39
language guides, and the [guide on writing Spin applications](https://developer.fermyon.com/spin/configuration/).
40
40
41
41
## Usage
42
-
Below is an example of using the `spin` CLI to create a new Spin application. To run the example you will need to install the `wasm32-wasi` target for Rust.
42
+
Below is an example of using the `spin` CLI to create a new Spin application. To run the example you will need to install the `wasm32-wasip1` target for Rust.
43
43
44
44
```bash
45
-
$ rustup target add wasm32-wasi
45
+
$ rustup target add wasm32-wasip1
46
46
```
47
47
48
48
First, run the `spin new` command to create a Spin application from a template.
@@ -55,7 +55,7 @@ Running the `spin new` command created a `hello-rust` directory with all the nec
55
55
```bash
56
56
# Compile to Wasm by executing the `build` command.
// - if rustup is not present, check if cargo is present
38
38
// - if not, return RustNotInstalled
39
39
// - if so, warn but return empty list (Rust is installed but not via rustup, so we can't perform a diagnosis - bit of an edge case this one, and the user probably knows what they're doing...?)
40
-
// - if rustup is present but the list does not contain wasm32-wasi, return WasmTargetNotInstalled
41
-
// - if the list does contain wasm32-wasi, return an empty list
40
+
// - if rustup is present but the list does not contain wasm32-wasip1, return WasmTargetNotInstalled
41
+
// - if the list does contain wasm32-wasip1, return an empty list
42
42
// NOTE: this does not currently check against the Rust SDK MSRV - that could
43
43
// be a future enhancement or separate diagnosis, but at least the Rust compiler
0 commit comments