MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / load_compilable_module

Function load_compilable_module

crates/cli/src/load.rs:25–31  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

23}
24
25pub fn load_compilable_module(input: &str) -> Result<Module> {
26 let loaded = load_module(input)?;
27 if loaded.format == InputFormat::Twasm {
28 bail!("input is already a twasm archive; use `run`, `dump`, or `inspect` instead")
29 }
30 Ok(loaded.module)
31}
32
33pub fn default_twasm_output_path(input: &str) -> Result<String> {
34 if input == "-" {

Callers 1

runFunction · 0.85

Calls 1

load_moduleFunction · 0.85

Tested by

no test coverage detected