()
| 122 | } |
| 123 | |
| 124 | fn 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 | } |
nothing calls this directly
no test coverage detected