Stream: wasmtime

Topic: Generalized Bindings


view this post on Zulip Ashanti Mutinta (Apr 23 2024 at 19:24):

I would like to create a module that can read wit files and allow the user to call functions based on the wit file without the need for a macro. User would be able to pass in function name and specified parameters. My question is would I have to call appropriate 'realloc' or is this just intrinsically baked into the abi and are handled automatically?

view this post on Zulip Alex Crichton (Apr 23 2024 at 22:21):

For this you'll be using wasmtime::component::Val which handles all the ABI details for you with wasmtime::component::Func::call


Last updated: Oct 23 2024 at 20:03 UTC