wasmer_wasix::runtime::module_cache

Function in_memory

Source
pub fn in_memory() -> impl ModuleCache + Send + Sync
Expand description

Get a ModuleCache which should be good enough for most in-memory use cases.

ยงPlatform-specific Notes

This will use the ThreadLocalCache when running in the browser. Each thread lives in a separate worker, so sharing compiled modules in the browser requires using a custom ModuleCache built on top of postMessage() and SharedArrayBuffer.