Skip to content

Commit 86cb2f5

Browse files
committed
Use wasip2 target in templates and examples
Signed-off-by: Brian Hardock <[email protected]>
1 parent d31c6bd commit 86cb2f5

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

examples/http-rust/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-wasip1/release/http_rust.wasm"
14+
source = "target/wasm32-wasip2/release/http_rust.wasm"
1515
description = "A simple component that returns hello."
1616
[component.hello.build]
17-
command = "cargo build --target wasm32-wasip1 --release"
17+
command = "cargo build --target wasm32-wasip2 --release"
1818
watch = ["src/**/*.rs", "Cargo.toml"]

examples/spin-timer/app-example/spin.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ interval_secs = 10
1717
component = "five"
1818

1919
[component.three]
20-
source = "target/wasm32-wasip1/release/timer_app_example.wasm"
20+
source = "target/wasm32-wasip2/release/timer_app_example.wasm"
2121
[component.three.variables]
2222
message = "Fizz"
2323
[component.three.build]
24-
command = "cargo build --target wasm32-wasip1 --release"
24+
command = "cargo build --target wasm32-wasip2 --release"
2525

2626
[component.five]
27-
source = "target/wasm32-wasip1/release/timer_app_example.wasm"
27+
source = "target/wasm32-wasip2/release/timer_app_example.wasm"
2828
[component.five.variables]
2929
message = "Buzz"
3030
[component.five.build]
31-
command = "cargo build --target wasm32-wasip1 --release"
31+
command = "cargo build --target wasm32-wasip2 --release"

examples/vault-variable-test/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ component = "vault-variable-test"
1414
secret = { required = true }
1515

1616
[component.vault-variable-test]
17-
source = "target/wasm32-wasip1/release/vault_variable_test.wasm"
17+
source = "target/wasm32-wasip2/release/vault_variable_test.wasm"
1818
allowed_outbound_hosts = []
1919

2020
[component.vault-variable-test.variables]
2121
token = "{{ secret }}"
2222

2323
[component.vault-variable-test.build]
24-
command = "cargo build --target wasm32-wasip1 --release"
24+
command = "cargo build --target wasm32-wasip2 --release"
2525
watch = ["src/**/*.rs", "Cargo.toml"]

templates/http-rust/content/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ route = "{{http-path}}"
1313
component = "{{project-name | kebab_case}}"
1414

1515
[component.{{project-name | kebab_case}}]
16-
source = "target/wasm32-wasip1/release/{{project-name | snake_case}}.wasm"
16+
source = "target/wasm32-wasip2/release/{{project-name | snake_case}}.wasm"
1717
allowed_outbound_hosts = []
1818
[component.{{project-name | kebab_case}}.build]
19-
command = "cargo build --target wasm32-wasip1 --release"
19+
command = "cargo build --target wasm32-wasip2 --release"
2020
watch = ["src/**/*.rs", "Cargo.toml"]

templates/redis-rust/content/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ channel = "{{redis-channel}}"
1616
component = "{{project-name | kebab_case}}"
1717

1818
[component.{{project-name | kebab_case}}]
19-
source = "target/wasm32-wasip1/release/{{project-name | snake_case}}.wasm"
19+
source = "target/wasm32-wasip2/release/{{project-name | snake_case}}.wasm"
2020
allowed_outbound_hosts = []
2121
[component.{{project-name | kebab_case}}.build]
22-
command = "cargo build --target wasm32-wasip1 --release"
22+
command = "cargo build --target wasm32-wasip2 --release"
2323
watch = ["src/**/*.rs", "Cargo.toml"]

0 commit comments

Comments
 (0)