inspect module
This block is part of the webassembly group and was last modified in core v15.0.3.
inspect module v15.0.3 Says what a WebAssembly module offers: its ABI, its callable exports, its memory and its SHA-256.
- module
filerequiredv15.0.3The
.wasmfile: a file pin (an uploaded or stored file of this app) or a path in the app's files.
- exports
arrayv15.0.3The names wasm_call can name.
- abi
valuev15.0.3rual_json_v1 or wasi_command.
- memory pages
numberv15.0.3Initial memory, in 64 KiB pages.
- sha256
valuev15.0.3The module's id: the SHA-256 of its bytes, hex.
- size
numberv15.0.3Bytes.
- success
conditionv15.0.3 - error
valuev15.0.3A fixed code when the module could not be inspected.
Compiles (or finds compiled) the module file without running it. abi is rual_json_v1 or wasi_command; exports lists, sorted, the exports wasm_call can name on a rual_json_v1 module (those of signature (i32, i32) -> i64, without rual_alloc, rual_free, _initialize) and is empty for a command module, which dispatches on its argument; memory_pages is the initial linear memory in 64 KiB pages; sha256 (hex) is the id the module is cached under on every node; size is its bytes. sha256 and size are answered whenever the file was read, also when it does not compile. On failure success=false and error is one of MODULE_NOT_FOUND, MODULE_INVALID, MODULE_TOO_LARGE, MODULE_LIMIT (it declares more locals, tables, table entries, functions or the like than the runner admits), ABI_UNSUPPORTED (an import other than wasi_snapshot_preview1, or neither ABI), MEMORY_LIMIT (it declares more memory than the ceiling), TIMEOUT (still compiling; it is cached when done), WASM_BUSY, WASM_NOT_ENABLED. No flow pins. Runs in simulations.
webassembly |
wasm |
Version history
Introduced in v15.0.3.
Back to
webassembly Return to the main group to view all sub-groups Back to modules Return to the group to view all blocks within this group