Stream: general

Topic: ✔ Dynamically load wit & wasm functions at runtime


view this post on Zulip Ari Seyhun (Mar 21 2022 at 06:07):

Is it possible to dynamically load a wasm + wit file and execute a function at runtime,rather than it being compiled in with the import! macro?

Similar to the .typed::<(...), (...), _>() method but with the more advanced wit types?

view this post on Zulip Ari Seyhun (Mar 21 2022 at 06:36):

In my case, I know the parameters and return type of the function will always be primitives (either string, i64, f64, bool or Vec<u8>, Option, Result).

view this post on Zulip Ari Seyhun (Mar 21 2022 at 07:14):

I think I won't go down the route of trying to make things dynamic

view this post on Zulip Notification Bot (Mar 21 2022 at 07:14):

Ari Seyhun has marked this topic as resolved.


Last updated: Nov 26 2024 at 00:12 UTC