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

Function parse_preloads

src/commands/run.rs:34–40  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

32use wasmtime_wasi_threads::WasiThreadsCtx;
33
34fn parse_preloads(s: &str) -> Result<(String, PathBuf)> {
35 let parts: Vec<&str> = s.splitn(2, '=').collect();
36 if parts.len() != 2 {
37 bail!("must contain exactly one equals character ('=')");
38 }
39 Ok((parts[0].into(), parts[1].into()))
40}
41
42/// Runs a WebAssembly module
43#[derive(Parser)]

Callers

nothing calls this directly

Calls 3

OkFunction · 0.85
collectMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected