peterhuene edited PR #9 from engine-host-functions to main:
This RFC proposes to extend the Wasmtime API to allow users to define host
functions in aConfigthat can be shared between multiple engines and
therefore stores.Today,
Funcis used to define host functions, but it is tied to aStore.
If users desire short-lived stores to ensure short-lived instances, host
functions need to be redefined upon every module instantiation.By defining host functions with a
Config, instances can be created
without having to redefine the host functions; this will make for faster module
instantiations in scenarios where a module is repeatedly instantiated.
peterhuene edited PR #9 from engine-host-functions to main:
This RFC proposes to extend the Wasmtime API to allow users to define host
functions in aConfigthat can be shared between multiple engines and
therefore stores.Today,
Funcis used to define host functions, but it is tied to aStore.
If users desire short-lived stores to ensure short-lived instances, host
functions need to be redefined upon every module instantiation.By defining host functions with a
Config, instances can be created
without having to redefine the host functions; this will make for faster module
instantiations in scenarios where a module is repeatedly instantiated.
sunfishcode submitted PR Review.
cfallin submitted PR Review.
abrown submitted PR Review.
peterhuene merged PR #9.
Last updated: Dec 06 2025 at 06:05 UTC