wingo added the bug label to Issue #11736.
wingo opened issue #11736:
Hello,
Running
wasmtime runon a component that useswasi:httpfails:[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 missingThis is because although
wasmtime runhas 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 :)
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)
wingo commented on issue #11736:
I was running with
-Wcomponent-model-async=y -Sp3=y -Shttp=y. The issue is that unlikewasmtime serve, there is no code inwasmtime runto make P3 HTTP available to the linker.
alexcrichton commented on issue #11736:
Oops yes indeed! https://github.com/bytecodealliance/wasmtime/pull/11741 should fix this
alexcrichton closed issue #11736:
Hello,
Running
wasmtime runon a component that useswasi:httpfails:[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 missingThis is because although
wasmtime runhas 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