Stream: wasmtime

Topic: Start function


view this post on Zulip Stephan Renatus (May 11 2021 at 14:01):

Hey there. I've been wondering if I can assume that a module's start function will be executed when a module is initialized using wasmtime. I.e. there's a wasmtime-based provider for wapc; and I'm unsure if it calls the start function or doesn't...

view this post on Zulip Cheng Shao (May 11 2021 at 14:08):

Yes it does, see https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasmtime/src/instance.rs#L54

Standalone JIT-style runtime for WebAssembly, using Cranelift - bytecodealliance/wasmtime

view this post on Zulip Stephan Renatus (May 11 2021 at 14:09):

Thank you :)


Last updated: Oct 23 2024 at 20:03 UTC