Hey, first of all, thank you for that project and work you've done!
I've tried to create stripped down component based on your example from examples/http-p3 directory and it works, when called as described in README. The problem is, that when trying to run it with my own code using wasmtime programatically, it returns an error:
component imports instance `wasi:io/poll@0.2.4`, but a matching implementation was not found in the linker
When looking at bindings that were generated by calling componentize-py -d ./wit -w wasi:http/service@0.3.0 bindings app, there is file called poll_loop.py. I'm still a newbie to wasi/wasmtime world, but I suppose that file might somehow be a reason, why that error occurs - it even states that wasi:http@0.3.0 uses different mechanism to model concurrency? Or is that completely my fault?
Part of my wasmtime executor:
let mut wasmtime_config = Config::new();
wasmtime_config.wasm_component_model_async(true);
let engine = Engine::new(&wasmtime_config)?;
let mut linker = Linker::<WASMState>::new(&engine);
wasmtime_wasi_http::p3::add_to_linker(&mut linker)?;
...
Hey, first of all, thank you for that project and work you've done!
I've tried to create stripped down component based on your example from
examples/http-p3directory and it works, when called as described in README. The problem is, that when trying to run it with my own code using wasmtime programatically, it returns an error:component imports instance `wasi:io/poll@0.2.4`, but a matching implementation was not found in the linkerWhen looking at bindings that were generated by calling
componentize-py -d ./wit -w wasi:http/service@0.3.0 bindings app, there is file calledpoll_loop.py. I'm still a newbie to wasi/wasmtime world, but I suppose that file might somehow be a reason, why that error occurs - it even states that wasi:http@0.3.0 uses different mechanism to model concurrency? Or is that completely my fault?Part of my wasmtime executor: