Module wasmtime.bindgen
Sub-modules
wasmtime.bindgen.generated
Functions
def generate(name: str, component: bytes) ‑> Mapping[str, bytes]
-
Expand source code
def generate(name: str, component: bytes) -> Mapping[str, bytes]: root, store = init() result = root.generate(store, name, component) if isinstance(result, Err): raise RuntimeError(result.value) ret = {} for name, contents in result.value: ret[name] = contents return ret