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

Function config

crates/test-programs/src/preview1.rs:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use std::{mem::MaybeUninit, sync::OnceLock, time::Duration};
2
3pub fn config() -> &'static TestConfig {
4 static TESTCONFIG: OnceLock<TestConfig> = OnceLock::new();
5 TESTCONFIG.get_or_init(TestConfig::from_env)
6}
7
8// The `wasi` crate version 0.9.0 and beyond, doesn't
9// seem to define these constants, so we do it ourselves.

Callers 6

test_path_linkFunction · 0.50
mainFunction · 0.50
test_symlink_loopFunction · 0.50
test_dangling_symlinkFunction · 0.50
test_dangling_fdFunction · 0.50

Calls 2

newFunction · 0.50
get_or_initMethod · 0.45

Tested by 5

test_path_linkFunction · 0.40
test_symlink_loopFunction · 0.40
test_dangling_symlinkFunction · 0.40
test_dangling_fdFunction · 0.40