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

Function main

examples/wasip2-plugins/src/main.rs:124–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124fn main() -> wasmtime::Result<()> {
125 // Get plugins directory
126 let args = Args::parse();
127
128 // Initialize mapping from plugin names to plugins
129 let mut state = CalculatorState::new();
130
131 // Load plugins from plugins directory
132 load_plugins(&mut state, args.plugins.as_path())?;
133
134 // Evaluate the expression given on the command line
135 args.op.run(&mut state)
136}

Callers

nothing calls this directly

Calls 4

load_pluginsFunction · 0.85
parseFunction · 0.50
newFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected