Skip to content

Conversation

@fibonacci1729
Copy link
Contributor

@fibonacci1729 fibonacci1729 commented Oct 16, 2025

This PR provides an implementation of http_body::Body which enables a pretty seamless interoperability story with the Rust HTTP ecosystem. Additionally implemented are some useful translations to convert between items in wasip3::http::types and types part of the http package.

Any early feedback / guidance on how to best structure this integration would be extremely appreciated!

@pchickey
Copy link
Collaborator

I think this is really excellent work and something the ecosystem really needs. And I'm really glad that with p3 it can land directly in the wasi-rs crate instead of needing wstd!

@alexcrichton
Copy link
Member

The only thing I'd add over what others already said is it might be good to have something at crates/wasip3/examples/*.rs as well to showcase some of this functionality, but otherwise looks good 👍

@fibonacci1729 fibonacci1729 force-pushed the wasip3-http-ext branch 4 times, most recently from b330ab8 to 9935f30 Compare October 20, 2025 20:52
…e conversions

Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
@fibonacci1729
Copy link
Contributor Author

fibonacci1729 commented Oct 20, 2025

Added an example and addressed all the comments. This is ready for another/final review!

Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
@alexcrichton alexcrichton merged commit 01362a0 into bytecodealliance:main Oct 22, 2025
21 checks passed
@alexcrichton
Copy link
Member

Oh, actually, right after hitting merge I realized -- I don't think that this is built on CI just yet, so could you update CI configs to ensure that the wasip3 crate is built with this feature? Right now we don't run any wasip3 things due to when CI was added Wasmtime didn't have support, and we could add support for that now too but I can take care of that later.

@fibonacci1729 fibonacci1729 deleted the wasip3-http-ext branch October 22, 2025 20:50
alexcrichton added a commit to alexcrichton/rust-wasi that referenced this pull request Oct 23, 2025
Mostly get a crates.io release with bytecodealliance#126
alexcrichton added a commit that referenced this pull request Oct 23, 2025
* Bump wasip3 to 0.2.1

Mostly get a crates.io release with #126

* Update generated code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants