Two questions regarding wasmtime_wasi::preview2::command::add_to_linker (and its sync counterpart):
wasmtime-wit-bindgen-generated add_to_linker function for the command world?random::insecure::add_to_linker or random::insecure_seed::add_to_linker, given that those are part of the command world?(if the latter is simply a mistake, I can PR a fix)
(Context: it's currently impossible to run a componentize-py-generated CLI app using wasmtime run because the linker provides neither wasi:random/insecure nor wasi:random/insecure_seed)
Why is it written by hand
It should be using the generated version if that works, I think it was an in-development artifact not using that, but no reason otherwise.
Why does it not include random::insecure
I believe that's a bug!
PR to address the omissions: https://github.com/bytecodealliance/wasmtime/pull/7613
Last updated: Dec 06 2025 at 06:05 UTC