pub fn in_memory() -> impl ModuleCache + Send + SyncExpand 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.