Stream: git-wasmtime

Topic: wasmtime / issue #11736 Add WASIp3 HTTP to `wasmtime run`


view this post on Zulip Wasmtime GitHub notifications bot (Sep 23 2025 at 08:54):

wingo added the bug label to Issue #11736.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 23 2025 at 08:54):

wingo opened issue #11736:

Hello,

Running wasmtime run on a component that uses wasi:http fails:

[dev-env] wingo@beastie ~/src/wasip3/wasi-testsuite/tests/rust/wasm32-wasip3$ ~/src/wasip3/wasmtime/target/release/wasmtime -Wcomponent-model-async=y -Shttp=y -Sp3=y target/wasm32-wasip2/release/http-fields.wasm
Error: failed to run main module `target/wasm32-wasip2/release/http-fields.wasm`

Caused by:
    0: component imports instance `wasi:http/types@0.3.0-rc-2025-09-16`, but a matching implementation was not found in the linker
    1: instance export `fields` has the wrong type
    2: resource implementation is missing

This is because although wasmtime run has support for wasip2 HTTP, it doesn't add wasip3 support to the linker.

I had a poke at adding it, but I admit I got lost in the thicket of contexts and views :)

view this post on Zulip Wasmtime GitHub notifications bot (Sep 23 2025 at 20:23):

alexcrichton commented on issue #11736:

Does --wasi http (or -Shttp) work for you? (http is off-by-default but should be enabled with this opt-in, and there's perhaps another issue here of we should have it on-by-default maybe)

view this post on Zulip Wasmtime GitHub notifications bot (Sep 24 2025 at 07:12):

wingo commented on issue #11736:

I was running with -Wcomponent-model-async=y -Sp3=y -Shttp=y. The issue is that unlike wasmtime serve, there is no code in wasmtime run to make P3 HTTP available to the linker.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 24 2025 at 15:34):

alexcrichton commented on issue #11736:

Oops yes indeed! https://github.com/bytecodealliance/wasmtime/pull/11741 should fix this

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

alexcrichton closed issue #11736:

Hello,

Running wasmtime run on a component that uses wasi:http fails:

[dev-env] wingo@beastie ~/src/wasip3/wasi-testsuite/tests/rust/wasm32-wasip3$ ~/src/wasip3/wasmtime/target/release/wasmtime -Wcomponent-model-async=y -Shttp=y -Sp3=y target/wasm32-wasip2/release/http-fields.wasm
Error: failed to run main module `target/wasm32-wasip2/release/http-fields.wasm`

Caused by:
    0: component imports instance `wasi:http/types@0.3.0-rc-2025-09-16`, but a matching implementation was not found in the linker
    1: instance export `fields` has the wrong type
    2: resource implementation is missing

This is because although wasmtime run has support for wasip2 HTTP, it doesn't add wasip3 support to the linker.

I had a poke at adding it, but I admit I got lost in the thicket of contexts and views :)


Last updated: Dec 06 2025 at 07:03 UTC