MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / store

Function store

crates/wizer/tests/all/tests.rs:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20fn store() -> Result<Store<p1::WasiP1Ctx>> {
21 let mut wasi = WasiCtxBuilder::new();
22 let mut config = Config::new();
23 config.relaxed_simd_deterministic(true);
24 let engine = Engine::new(&config)?;
25 Ok(Store::new(&engine, wasi.build_p1()))
26}
27
28async fn instantiate(store: &mut Store<p1::WasiP1Ctx>, module: &Module) -> Result<Instance> {
29 let mut linker = Linker::new(store.engine());

Callers 10

wizen_and_run_wasmFunction · 0.70
rename_functionsFunction · 0.70
gen_store_stackMethod · 0.50
gen_store_base_offsetMethod · 0.50
gen_clobber_saveMethod · 0.50
storeMethod · 0.50
invokeMethod · 0.50
callMethod · 0.50
storeMethod · 0.50
invokeMethod · 0.50

Calls 4

OkFunction · 0.85
build_p1Method · 0.80
newFunction · 0.50

Tested by

no test coverage detected