Hi!
I'm doing a toy project where I'm trying to run wasmtime with async_support with a custom executor, and it seems like the wasmtime_wasi::add_to_linker doesn't support adding the functions as async? Am I doing something simple wrong?
I thought i could work around it by using the tokio exported one which sets the macro Async token, even if I'm not using tokio, but that still didn't work. I still get a panic:
thread 'main' panicked at 'must use async instantiation when async support is enabled', /home/coo/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmtime-1.0.0/src/instance.rs:173:9
Do i have to add to the linker instance manually if I want async support? I couldn't find any good examples or docs online. Thanks!
ah... I see the issue. I was using Linker::module
instead of Linker::module_async
:(. Wish the error message was a bit more helpful
Last updated: Dec 23 2024 at 13:07 UTC