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

Function get_wasmtime_command

tests/all/cli_tests.rs:22–30  ·  view source on GitHub ↗

Get the Wasmtime CLI as a [Command].

()

Source from the content-addressed store, hash-verified

20
21/// Get the Wasmtime CLI as a [Command].
22pub fn get_wasmtime_command() -> Result<Command> {
23 let mut cmd = wasmtime_test_util::command(get_wasmtime_path());
24
25 // Ignore this if it's specified in the environment to allow tests to run in
26 // "default mode" by default.
27 cmd.env_remove("WASMTIME_NEW_CLI");
28
29 Ok(cmd)
30}
31
32fn get_wasmtime_path() -> &'static str {
33 env!("CARGO_BIN_EXE_wasmtime")

Callers 15

run_wasmtime_for_outputFunction · 0.85
specify_envFunction · 0.85
run_cwasm_from_stdinFunction · 0.85
run_just_stdin_argumentFunction · 0.85
wasi_misaligned_pointerFunction · 0.85
bad_text_syntaxFunction · 0.85
memory_growth_failureFunction · 0.85
table_growth_failureFunction · 0.85

Calls 3

commandFunction · 0.85
get_wasmtime_pathFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected