MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / new

Method new

compiler/src/main/mod.rs:88–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87impl WasmRuntime {
88 const fn new() -> Self {
89 Self {
90 src: [0; SZ],
91 out: [0; SZ],
92 inp: [0; SZ],
93 inp_len: 0,
94 registry: Vec::new(),
95 manifests: Vec::new(),
96 handles: HandleTable::new(),
97 error_stash: ErrorStash::new(),
98 current_vm: None,
99 paused_run: None,
100 }
101 }
102}
103
104static mut RUNTIME: WasmRuntime = WasmRuntime::new();

Callers

nothing calls this directly

Calls 1

with_runtimeFunction · 0.85

Tested by

no test coverage detected