Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
797 changes: 703 additions & 94 deletions examples/http-rust/Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/http-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "http-rust"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

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

[dependencies]
anyhow = "1"
http = "0.2.9"
spin-sdk = "2.2.0"
http = "1.3.1"
spin-sdk = "5.0.0"

[workspace]
4 changes: 2 additions & 2 deletions examples/http-rust/spin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ route = "/hello"
component = "hello"

[component.hello]
source = "target/wasm32-wasip1/release/http_rust.wasm"
source = "target/wasm32-wasip2/release/http_rust.wasm"
description = "A simple component that returns hello."
[component.hello.build]
command = "cargo build --target wasm32-wasip1 --release"
command = "cargo build --target wasm32-wasip2 --release"
watch = ["src/**/*.rs", "Cargo.toml"]
Loading
Loading