Skip to content

Commit 353ef99

Browse files
committed
chore(*): use wasm32-wasip1
Signed-off-by: Vaughn Dice <[email protected]>
1 parent b6b371b commit 353ef99

File tree

39 files changed

+64
-64
lines changed

39 files changed

+64
-64
lines changed

.github/workflows/build-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: dtolnay/rust-toolchain@stable
2323
with:
2424
toolchain: "${{ env.RUST_VERSION }}"
25-
targets: wasm32-wasi
25+
targets: wasm32-wasip1
2626
- name: Install Spin
2727
uses: fermyon/actions/spin/setup@v1
2828
- name: Run build_examples.sh

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt
2929
rustup default ${{ env.RUST_VERSION }}
30-
rustup target add wasm32-wasi
30+
rustup target add wasm32-wasip1
3131
3232
- name: Lint
3333
shell: bash

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ route = "/..."
7777
component = "hello-world"
7878

7979
[component.hello-world]
80-
source = "target/wasm32-wasi/release/hello_world.wasm"
80+
source = "target/wasm32-wasip1/release/hello_world.wasm"
8181
allowed_outbound_hosts = ["https://random-data-api.fermyon.app"]
8282
[component.hello-world.build]
83-
command = "cargo build --target wasm32-wasi --release"
83+
command = "cargo build --target wasm32-wasip1 --release"
8484
watch = ["src/**/*.rs", "Cargo.toml"]
8585
```
8686

@@ -90,7 +90,7 @@ Spin build can be used to build all components defined in the Spin manifest file
9090

9191
```bash
9292
$ spin build --up
93-
Building component hello-world with `cargo build --target wasm32-wasi --release`
93+
Building component hello-world with `cargo build --target wasm32-wasip1 --release`
9494
Finished release [optimized] target(s) in 0.12s
9595
Finished building all Spin components
9696
Logging component stdio to ".spin/logs/"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"

examples/hello-world/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ route = "/hello"
1111
component = "hello"
1212

1313
[component.hello]
14-
source = "../../target/wasm32-wasi/release/hello_world.wasm"
14+
source = "../../target/wasm32-wasip1/release/hello_world.wasm"
1515
description = "A simple component that returns hello."
1616
[component.hello.build]
17-
command = "cargo build --target wasm32-wasi --release"
17+
command = "cargo build --target wasm32-wasip1 --release"
1818
watch = ["src/**/*.rs", "Cargo.toml"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"

examples/http-outbound/spin.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@ route = "/hello"
2323
component = "hello-component"
2424

2525
[component.outbound-http]
26-
source = "../../target/wasm32-wasi/release/http_rust_outbound_http.wasm"
26+
source = "../../target/wasm32-wasip1/release/http_rust_outbound_http.wasm"
2727
allowed_outbound_hosts = [
2828
"https://random-data-api.fermyon.app",
2929
"http://foo.com",
3030
"https://foo.com",
3131
]
3232
[component.outbound-http.build]
3333
workdir = "outbound-http"
34-
command = "cargo build --target wasm32-wasi --release"
34+
command = "cargo build --target wasm32-wasip1 --release"
3535

3636
[component.outbound-http-wildcard]
37-
source = "../../target/wasm32-wasi/release/http_rust_outbound_http.wasm"
37+
source = "../../target/wasm32-wasip1/release/http_rust_outbound_http.wasm"
3838
allowed_outbound_hosts = ["https://*:*"]
3939
[component.outbound-http-wildcard.build]
4040
workdir = "outbound-http"
41-
command = "cargo build --target wasm32-wasi --release"
41+
command = "cargo build --target wasm32-wasip1 --release"
4242

4343
[component.outbound-http-to-same-app]
44-
source = "../../target/wasm32-wasi/release/outbound_http_to_same_app.wasm"
44+
source = "../../target/wasm32-wasip1/release/outbound_http_to_same_app.wasm"
4545
# To make outbound calls to components in the same Spin app, use the special value self.
4646
allowed_outbound_hosts = ["http://self"]
4747
[component.outbound-http-to-same-app.build]
4848
workdir = "outbound-http-to-same-app"
49-
command = "cargo build --target wasm32-wasi --release"
49+
command = "cargo build --target wasm32-wasip1 --release"
5050

5151
[component.hello-component]
52-
source = "../../target/wasm32-wasi/release/http_hello.wasm"
52+
source = "../../target/wasm32-wasip1/release/http_hello.wasm"
5353
description = "A simple component that returns hello."
5454
[component.hello-component.build]
5555
workdir = "http-hello"
56-
command = "cargo build --target wasm32-wasi --release"
56+
command = "cargo build --target wasm32-wasip1 --release"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"

0 commit comments

Comments
 (0)