Skip to content

Commit a7e4545

Browse files
committed
Delete wasip3-http-ext and use upstream wasip3 additions
Signed-off-by: Brian Hardock <[email protected]>
1 parent ddd7b29 commit a7e4545

File tree

7 files changed

+111
-758
lines changed

7 files changed

+111
-758
lines changed

Cargo.lock

Lines changed: 7 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/spin-wasip3-http-macro/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ use quote::quote;
2222
///
2323
/// If the function is not asynchronous, the macro emits a compile-time error.
2424
///
25+
/// # Example
26+
///
27+
/// ```ignore
28+
/// use spin_sdk::http_wasip3::{http_component, Request, IntoResponse};
29+
///
30+
/// #[http_component]
31+
/// async fn my_handler(request: Request) -> impl IntoResponse {
32+
/// // Your logic goes here
33+
/// }
34+
/// ```
35+
///
2536
/// # Generated Code
2637
///
2738
/// The macro expands into a module containing a `Spin` struct that implements the

crates/spin-wasip3-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ bytes = { workspace = true }
1414
http-body = { workspace = true }
1515
http-body-util = { workspace = true }
1616
hyperium = { workspace = true }
17-
wasip3-http-ext = { version = "5.0.0", path = "../wasip3-http-ext" }
17+
wasip3 = { version = "0.2.1", features = ["http-compat"] }

0 commit comments

Comments
 (0)