Run consists of 3 steps: 1. Set up runtime 2. Execute AOT-compiled Wasm binary 3. Teardown runtime
(config: &WaveConfig)
| 84 | // 2. Execute AOT-compiled Wasm binary |
| 85 | // 3. Teardown runtime |
| 86 | pub fn run(config: &WaveConfig) { |
| 87 | let sandbox = setup(config); |
| 88 | let _result = execute(&sandbox); |
| 89 | teardown(sandbox); |
| 90 | } |
| 91 |