Skip to content

Commit fdf3146

Browse files
fix(templates): Add spin add snippet for http-rust-wasip3-unstable template (#3350)
Without this, `spin add` doesn't work for this template. Signed-off-by: Till Schneidereit <[email protected]>
1 parent b332f52 commit fdf3146

File tree

1 file changed

+12
-0
lines changed
  • templates/http-rust-wasip3-unstable/metadata/snippets

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[[trigger.http]]
2+
route = "{{http-path}}"
3+
component = "{{project-name | kebab_case}}"
4+
executor = { type = "wasip3-unstable" }
5+
6+
[component.{{project-name | kebab_case}}]
7+
source = "{{ output-path }}/target/wasm32-wasip2/release/{{project-name | snake_case}}.wasm"
8+
allowed_outbound_hosts = []
9+
[component.{{project-name | kebab_case}}.build]
10+
command = "cargo build --target wasm32-wasip2 --release"
11+
workdir = "{{ output-path }}"
12+
watch = ["src/**/*.rs", "Cargo.toml"]

0 commit comments

Comments
 (0)