Skip to content

Commit c9a947c

Browse files
authored
Merge pull request #26 from itowlson/work-with-rust-1.82
Update templates to work with current Rust
2 parents eb21888 + 278ec1b commit c9a947c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["{{authors}}"]
44
description = "{{project-description}}"
55
version = "0.1.0"
66
edition = "2021"
7-
rust-version = "1.71"
7+
rust-version = "1.78"
88

99
[lib]
1010
crate-type = ["cdylib"]

templates/cron-rust/content/spin.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ component = "{{project-name | kebab_case}}"
1111
cron_expression = "{{cron-expression}}"
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/cron-rust/metadata/snippets/component.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ component = "{{project-name | kebab_case}}"
33
cron_expression = "{{cron-expression}}"
44

55
[component.{{project-name | kebab_case}}]
6-
source = "{{ output-path }}/target/wasm32-wasi/release/{{project-name | snake_case}}.wasm"
6+
source = "{{ output-path }}/target/wasm32-wasip1/release/{{project-name | snake_case}}.wasm"
77
allowed_outbound_hosts = []
88
[component.{{project-name | kebab_case}}.build]
9-
command = "cargo build --target wasm32-wasi --release"
9+
command = "cargo build --target wasm32-wasip1 --release"
1010
workdir = "{{ output-path }}"
1111
watch = ["src/**/*.rs", "Cargo.toml"]

0 commit comments

Comments
 (0)