Skip to content

Commit

Permalink
chore: Update wagi examples
Browse files Browse the repository at this point in the history
- Update spin-wagi-http Cargo.lock
- Add build command into wagi-http-rust

Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
  • Loading branch information
etehtsea committed Nov 29, 2022
1 parent f4a64fd commit 0f8c025
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 88 deletions.
118 changes: 31 additions & 87 deletions examples/spin-wagi-http/http-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/wagi-http-rust/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ id = "env"
source = "target/wasm32-wasi/release/wagihelloworld.wasm"
[component.trigger]
route = "/env"
executor = { type = "wagi" } # _start (the default entrypoint) is automatically mapped to main()
executor = { type = "wagi" } # _start (the default entrypoint) is automatically mapped to main()
[component.build]
command = "cargo build --target wasm32-wasi --release"

0 comments on commit 0f8c025

Please sign in to comment.