(s: &str)
| 32 | use wasmtime_wasi_threads::WasiThreadsCtx; |
| 33 | |
| 34 | fn 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)] |