We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
spin add
http-rust-wasip3-unstable
1 parent b332f52 commit f65c264Copy full SHA for f65c264
templates/http-rust-wasip3-unstable/metadata/snippets/component.txt
@@ -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