Stream: git-wasmtime

Topic: wasmtime / PR #12748 Refactor WASIp2 `wasi:http` implemen...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:24):

alexcrichton requested dicej for a review on PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:24):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:24):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:24):

alexcrichton opened PR #12748 from alexcrichton:refactor-wasi-http to bytecodealliance:main:

This PR is a refactoring and reorganization mostly around WASIp2's implementation of wasi:http. Notably I am trying to get the implementations in this crate to look more like wasmtime-wasi with changes such as:

This PR is a step in this direction. There are two commits here which are doing similar things but are still separate. The first moves all the WASIp2 bits under a p2 top-level module. The second applies many structural refactorings to resolve the remaining bullets above.

Future work here includes accounting for #12674, working to have a single WasiHttpHooks trait (and thus a single WasiHttpView trait/WasiHttpCtxView struct), and updating idioms around WASIp2 to look more like WASIp3 (e.g. similar-looking embedder-style APIs).

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:24):

alexcrichton requested wasmtime-default-reviewers for a review on PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:25):

alexcrichton updated PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 21:57):

alexcrichton updated PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 09 2026 at 23:12):

alexcrichton updated PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 03:30):

github-actions[bot] added the label wasi on PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 05:55):

rvolosatovs submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 05:59):

rvolosatovs created PR review comment:

Out of curiosity, is there a reason to use empty array here as opposed to e.g. a unit?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 05:59):

rvolosatovs submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 13:32):

dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 14:53):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 14:53):

alexcrichton created PR review comment:

While I thought it was possible to return &mut ZST, apparently that's only implemented for empty arrays in rustc rather than all empty types -- hence the array here. It was the only way I could think of to safely get a &'static mut T to implement the trait on.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 14:53):

alexcrichton added PR #12748 Refactor WASIp2 wasi:http implementation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 15:23):

github-merge-queue[bot] removed PR #12748 Refactor WASIp2 wasi:http implementation from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 16:10):

alexcrichton updated PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 16:10):

alexcrichton has enabled auto merge for PR #12748.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 16:24):

alexcrichton added PR #12748 Refactor WASIp2 wasi:http implementation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 16:55):

alexcrichton removed PR #12748 Refactor WASIp2 wasi:http implementation from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 16:55):

alexcrichton merged PR #12748.


Last updated: Mar 23 2026 at 16:19 UTC