Skip to content

Commit fa71016

Browse files
authored
Merge pull request #33 from fibonacci1729/update-template-to-v2
2 parents 2cc2488 + 9f42e56 commit fa71016

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1-
spin_manifest_version = "1"
1+
spin_manifest_version = 2
2+
3+
[application]
4+
name = "{{project-name | kebab_case}}"
5+
version = "0.1.0"
26
authors = ["{{authors}}"]
37
description = "{{project-description}}"
4-
name = "{{project-name}}"
5-
trigger = { type = "mqtt", address = "{{mqtt-address}}", username = "{{mqtt-username}}", password = "{{mqtt-password}}", keep_alive_interval = "{{mqtt-keep_alive_interval}}" }
6-
version = "0.1.0"
78

8-
[[component]]
9-
id = "{{project-name | kebab_case}}"
10-
source = "target/wasm32-wasi/release/{{project-name | snake_case}}.wasm"
11-
allowed_outbound_hosts = ["{{mqtt-address}}"]
12-
[component.trigger]
9+
[application.trigger.mqtt]
10+
address = "{{mqtt-address}}"
11+
username = "{{mqtt-username}}"
12+
password = "{{mqtt-password}}"
13+
keep_alive_interval = "{{mqtt-keep_alive_interval}}"
14+
15+
[[trigger.mqtt]]
16+
component = "{{project-name | kebab_case}}"
1317
topic = "{{mqtt-topic}}"
1418
qos = "{{mqtt-qos}}"
15-
[component.build]
16-
command = "cargo build --target wasm32-wasi --release"
19+
20+
[component.{{project-name | kebab_case}}]
21+
source = "target/wasm32-wasi/release/{{project-name | snake_case}}.wasm"
22+
allowed_outbound_hosts = ["{{mqtt-address}}"]
23+
[component.{{project-name | kebab_case}}.build]
24+
command = "cargo build --target wasm32-wasi --release"

0 commit comments

Comments
 (0)