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

Function gc_store

tests/all/main.rs:128–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128pub(crate) fn gc_store() -> Result<wasmtime::Store<()>> {
129 let _ = env_logger::try_init();
130
131 let mut config = wasmtime::Config::new();
132 config.wasm_function_references(true);
133 config.wasm_gc(true);
134
135 let engine = wasmtime::Engine::new(&config)?;
136 Ok(wasmtime::Store::new(&engine, ()))
137}
138
139trait ErrorExt {
140 fn assert_contains(&self, msg: &str);

Calls 4

OkFunction · 0.85
newFunction · 0.50
wasm_gcMethod · 0.45

Tested by 15

array_new_emptyFunction · 0.68
array_new_with_elemsFunction · 0.68
array_new_fixed_emptyFunction · 0.68
anyref_as_arrayFunction · 0.68
array_len_emptyFunction · 0.68
array_len_non_emptyFunction · 0.68
array_get_in_boundsFunction · 0.68
array_get_out_of_boundsFunction · 0.68
array_get_on_unrootedFunction · 0.68