Skip to content

Commit f175c9f

Browse files
committed
Switch Rust templates to wasm32-wasip1
Signed-off-by: itowlson <[email protected]>
1 parent 606c48a commit f175c9f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

templates/http-rust/content/Cargo.toml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "{{project-name | kebab_case}}"
33
authors = ["{{authors}}"]
44
description = "{{project-description}}"
55
version = "0.1.0"
6+
rust-version = "1.78"
67
edition = "2021"
78

89
[lib]

templates/http-rust/content/spin.toml

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

1313
[component.{{project-name | kebab_case}}]
14-
source = "target/wasm32-wasi/release/{{project-name | snake_case}}.wasm"
14+
source = "target/wasm32-wasip1/release/{{project-name | snake_case}}.wasm"
1515
allowed_outbound_hosts = []
1616
[component.{{project-name | kebab_case}}.build]
17-
command = "cargo build --target wasm32-wasi --release"
17+
command = "cargo build --target wasm32-wasip1 --release"
1818
watch = ["src/**/*.rs", "Cargo.toml"]

templates/redis-rust/content/Cargo.toml.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "{{project-name | kebab_case}}"
33
authors = ["{{authors}}"]
44
description = "{{project-description}}"
55
version = "0.1.0"
6+
rust-version = "1.78"
67
edition = "2021"
78

89
[lib]

templates/redis-rust/content/spin.toml

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

1616
[component.{{project-name | kebab_case}}]
17-
source = "target/wasm32-wasi/release/{{project-name | snake_case}}.wasm"
17+
source = "target/wasm32-wasip1/release/{{project-name | snake_case}}.wasm"
1818
allowed_outbound_hosts = []
1919
[component.{{project-name | kebab_case}}.build]
20-
command = "cargo build --target wasm32-wasi --release"
20+
command = "cargo build --target wasm32-wasip1 --release"
2121
watch = ["src/**/*.rs", "Cargo.toml"]

0 commit comments

Comments
 (0)