Hi, I'm testing wasmtime with modules compiled with Rust for wasm32-wasi target. One thing that is confusing is that an empty module (just an empty main() {}
) function seems to require wasi_snapshot_preview1::fd_write
. Is there any way to check what does it need it for? I'd be guessing stdin, but just wanted to confirm somehow
That is probably a potential panic in the libstd initialization code. Libstd does various kinds of initialization which could fail if the environment misbehaves. In that case it will panic, which prints a message to stderr.
Last updated: Nov 22 2024 at 17:03 UTC