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

Function config

tests/all/stack_creator.rs:116–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116fn config() -> (Store<()>, Arc<CustomStackCreator>) {
117 let stack_creator = Arc::new(CustomStackCreator::new().unwrap());
118 let mut config = Config::new();
119 config
120 .max_wasm_stack(stack_creator.size / 2)
121 .async_stack_size(stack_creator.size)
122 .with_host_stack(stack_creator.clone());
123 (
124 Store::new(&Engine::new(&config).unwrap(), ()),
125 stack_creator,
126 )
127}
128
129#[tokio::test]
130#[cfg_attr(asan, ignore)]

Callers 6

configMethod · 0.70
resume_separate_threadFunction · 0.50
flagsFunction · 0.50
roundtripFunction · 0.50

Calls 6

with_host_stackMethod · 0.80
async_stack_sizeMethod · 0.80
newFunction · 0.50
unwrapMethod · 0.45
max_wasm_stackMethod · 0.45
cloneMethod · 0.45

Tested by 2

flagsFunction · 0.40
roundtripFunction · 0.40