Stream: wasmtime

Topic: Get a `Func` from an index


view this post on Zulip Alphyr (Nov 06 2022 at 17:06):

Hi ! Is there a way to get a wasmtime::Func from a function index ?
That would be an equivalent of ref.func x but from host and with index known at runtime.

view this post on Zulip Alex Crichton (Nov 06 2022 at 17:17):

as an embedder you can only access exports of an instance, so you can't access arbitrary internals. You can access an exported table, however, or the module could return a funcref through an export


Last updated: Dec 23 2024 at 13:07 UTC