Stream: wasi

Topic: import wasi random


view this post on Zulip Ludea (Jun 20 2026 at 07:04):

Hi, I did a component.
When trying to using it through wasmtime, I get component import instance wasi:random/random@0.3.0-rc-2026-01-06 but a matching implementation was not found in the linker

I add import wasi:random/random@0.3.0-rc-2026-01-06 into my world but I guess there is something else to do?
I look into https://component-model.bytecodealliance.org/ but found nothing

view this post on Zulip bjorn3 (Jun 20 2026 at 12:48):

Which version of wasmtime are you using and did you compile the wasmtime-wasi crate with the p3 cargo feature enabled? It probably doesn't support this version of the wasip3 release candidate or wasip3 support was disabled. I think the next Wasmtime version will support the stable release of wasip3.

view this post on Zulip Ludea (Jun 20 2026 at 13:00):

I use wasmtime 45.0.0 and wasmtime_wasi without any feature enabled

view this post on Zulip Ludea (Jun 20 2026 at 13:21):

cargo 1.98.0-nightly (fe63976b2 2026-06-11) (built from a source tarball)

view this post on Zulip bjorn3 (Jun 20 2026 at 14:47):

Try enabling the p3 feature on wasmtime-wasi.

view this post on Zulip Ludea (Jun 20 2026 at 16:43):

Still get the issue with p3 feature

view this post on Zulip Alex Crichton (Jun 20 2026 at 20:57):

I believe wasmtime 45.0.0 was using a difference dated rc snapshot of wasip3, so you'll need to hunt around your dependency try for what's pulling in 2026-01-06 and probably update that

view this post on Zulip Ludea (Jun 21 2026 at 08:15):

I try with wasmtime main branch and get same issue.
May I have to downgrade instead?

view this post on Zulip bjorn3 (Jun 21 2026 at 15:13):

You will need to make sure that wasmtime and whichever dependency uses wasi:random/random use the exact same wasip3 snapshot or if you use the wasmtime main branch, you have to update this dependency to use the actually released version of wasip3.

view this post on Zulip Ludea (Jun 22 2026 at 17:46):

So I have to check which deps from my component use random crate? ?


Last updated: Jul 29 2026 at 05:03 UTC