Expand description
Raw FFI bindings to the WebAssembly Micro Runtime (WAMR) fast interpreter.
This crate is the low-level -sys layer: it builds the vendored WAMR C
sources (fast-interpreter configuration only) and exposes the auto-generated
bindgen bindings for the embedding API declared in wasm_export.h.
Prefer the safe wamrx crate for application code; reach for these raw
bindings only when you need an API that the high-level wrapper does not yet
cover.
Structs§
- Instantiation
Args - Instantiation
Args2 - Load
Args - MemAlloc
Option__ bindgen_ ty_ 1 - MemAlloc
Option__ bindgen_ ty_ 2 - Native
Symbol - Runtime
Init Args - Shared
Heap Init Args - WASM
Exec Env - WASM
Func Type - WASM
Global Type - WASM
Memory - WASM
Memory Instance - WASM
Module Common - WASM
Module Instance Common - WASM
Shared Heap - WASM
Table Type - mem_
alloc_ info_ t - wasm_
export_ t - wasm_
frame_ t - wasm_
global_ inst_ t - wasm_
import_ t - wasm_
ref_ t - wasm_
section_ t - wasm_
table_ inst_ t - wasm_
val_ t
Constants§
- Alloc_
With_ Allocator - Alloc_
With_ Pool - Alloc_
With_ System_ Allocator - INTERNAL_
ERROR - MAX_
SIZE_ REACHED - Mode_
Fast_ JIT - Mode_
Interp - Mode_
LLVM_ JIT - Mode_
Multi_ Tier_ JIT - Package_
Type_ Unknown - WASM_
EXTERNREF - WASM_
F32 - WASM_
F64 - WASM_
FUNCREF - WASM_
I32 - WASM_
I64 - WASM_
IMPORT_ EXPORT_ KIND_ FUNC - WASM_
IMPORT_ EXPORT_ KIND_ GLOBAL - WASM_
IMPORT_ EXPORT_ KIND_ MEMORY - WASM_
IMPORT_ EXPORT_ KIND_ TABLE - WASM_
LOG_ LEVEL_ DEBUG - WASM_
LOG_ LEVEL_ ERROR - WASM_
LOG_ LEVEL_ FATAL - WASM_
LOG_ LEVEL_ VERBOSE - WASM_
LOG_ LEVEL_ WARNING - WASM_
V128 - Wasm_
Module_ AoT - Wasm_
Module_ Bytecode
Functions§
- wasm_
application_ ⚠execute_ func - wasm_
application_ ⚠execute_ main - wasm_
copy_ ⚠callstack - wasm_
externref_ ⚠obj2ref - wasm_
externref_ ⚠objdel - wasm_
externref_ ⚠ref2obj - wasm_
externref_ ⚠retain - wasm_
externref_ ⚠set_ cleanup - wasm_
func_ ⚠get_ param_ count - wasm_
func_ ⚠get_ param_ types - wasm_
func_ ⚠get_ result_ count - wasm_
func_ ⚠get_ result_ types - wasm_
func_ ⚠type_ get_ param_ count - wasm_
func_ ⚠type_ get_ param_ valkind - wasm_
func_ ⚠type_ get_ result_ count - wasm_
func_ ⚠type_ get_ result_ valkind - wasm_
global_ ⚠type_ get_ mutable - wasm_
global_ ⚠type_ get_ valkind - wasm_
memory_ ⚠enlarge - wasm_
memory_ ⚠get_ base_ address - wasm_
memory_ ⚠get_ bytes_ per_ page - wasm_
memory_ ⚠get_ cur_ page_ count - wasm_
memory_ ⚠get_ max_ page_ count - wasm_
memory_ ⚠get_ shared - wasm_
memory_ ⚠type_ get_ init_ page_ count - wasm_
memory_ ⚠type_ get_ max_ page_ count - wasm_
memory_ ⚠type_ get_ shared - wasm_
runtime_ ⚠addr_ app_ to_ native - wasm_
runtime_ ⚠addr_ native_ to_ app - wasm_
runtime_ ⚠aligned_ alloc - wasm_
runtime_ ⚠attach_ shared_ heap - wasm_
runtime_ ⚠begin_ blocking_ op - wasm_
runtime_ ⚠call_ indirect - wasm_
runtime_ ⚠call_ wasm - wasm_
runtime_ ⚠call_ wasm_ a - wasm_
runtime_ ⚠call_ wasm_ v - wasm_
runtime_ ⚠chain_ shared_ heaps - wasm_
runtime_ ⚠clear_ exception - wasm_
runtime_ ⚠create_ context_ key - wasm_
runtime_ ⚠create_ exec_ env - wasm_
runtime_ ⚠create_ shared_ heap - wasm_
runtime_ ⚠deinstantiate - wasm_
runtime_ ⚠destroy - wasm_
runtime_ ⚠destroy_ context_ key - wasm_
runtime_ ⚠destroy_ exec_ env - wasm_
runtime_ ⚠destroy_ spawned_ exec_ env - wasm_
runtime_ ⚠destroy_ thread_ env - wasm_
runtime_ ⚠detach_ shared_ heap - wasm_
runtime_ ⚠detect_ native_ stack_ overflow - wasm_
runtime_ ⚠detect_ native_ stack_ overflow_ size - wasm_
runtime_ ⚠dump_ call_ stack - wasm_
runtime_ ⚠dump_ call_ stack_ to_ buf - wasm_
runtime_ ⚠dump_ mem_ consumption - wasm_
runtime_ ⚠dump_ perf_ profiling - wasm_
runtime_ ⚠dump_ pgo_ prof_ data_ to_ buf - wasm_
runtime_ ⚠end_ blocking_ op - wasm_
runtime_ ⚠enlarge_ memory - wasm_
runtime_ ⚠find_ module_ registered - wasm_
runtime_ ⚠free - wasm_
runtime_ ⚠full_ init - wasm_
runtime_ ⚠get_ app_ addr_ range - wasm_
runtime_ ⚠get_ call_ stack_ buf_ size - wasm_
runtime_ ⚠get_ context - wasm_
runtime_ ⚠get_ current_ package_ version - wasm_
runtime_ ⚠get_ custom_ data - wasm_
runtime_ ⚠get_ custom_ section - wasm_
runtime_ ⚠get_ default_ memory - wasm_
runtime_ ⚠get_ exception - wasm_
runtime_ ⚠get_ exec_ env_ singleton - wasm_
runtime_ ⚠get_ export_ count - wasm_
runtime_ ⚠get_ export_ global_ inst - wasm_
runtime_ ⚠get_ export_ table_ inst - wasm_
runtime_ ⚠get_ export_ type - wasm_
runtime_ ⚠get_ file_ package_ type - wasm_
runtime_ ⚠get_ file_ package_ version - wasm_
runtime_ ⚠get_ function_ attachment - wasm_
runtime_ ⚠get_ import_ count - wasm_
runtime_ ⚠get_ import_ type - wasm_
runtime_ ⚠get_ mem_ alloc_ info - wasm_
runtime_ ⚠get_ memory - wasm_
runtime_ ⚠get_ module - wasm_
runtime_ ⚠get_ module_ hash - wasm_
runtime_ ⚠get_ module_ inst - wasm_
runtime_ ⚠get_ module_ name - wasm_
runtime_ ⚠get_ module_ package_ type - wasm_
runtime_ ⚠get_ module_ package_ version - wasm_
runtime_ ⚠get_ native_ addr_ range - wasm_
runtime_ ⚠get_ pgo_ prof_ data_ size - wasm_
runtime_ ⚠get_ running_ mode - wasm_
runtime_ ⚠get_ user_ data - wasm_
runtime_ ⚠get_ version - wasm_
runtime_ ⚠get_ wasi_ exit_ code - wasm_
runtime_ ⚠get_ wasm_ func_ exec_ time - wasm_
runtime_ ⚠init - wasm_
runtime_ ⚠init_ thread_ env - wasm_
runtime_ ⚠instantiate - wasm_
runtime_ ⚠instantiate_ ex - wasm_
runtime_ ⚠instantiate_ ex2 - wasm_
runtime_ ⚠instantiation_ args_ create - wasm_
runtime_ ⚠instantiation_ args_ destroy - wasm_
runtime_ ⚠instantiation_ args_ set_ custom_ data - wasm_
runtime_ ⚠instantiation_ args_ set_ default_ stack_ size - wasm_
runtime_ ⚠instantiation_ args_ set_ host_ managed_ heap_ size - wasm_
runtime_ ⚠instantiation_ args_ set_ max_ memory_ pages - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ addr_ pool - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ arg - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ dir - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ env - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ ns_ lookup_ pool - wasm_
runtime_ ⚠instantiation_ args_ set_ wasi_ stdio - wasm_
runtime_ ⚠is_ bounds_ checks_ enabled - wasm_
runtime_ ⚠is_ import_ func_ linked - wasm_
runtime_ ⚠is_ import_ global_ linked - wasm_
runtime_ ⚠is_ running_ mode_ supported - wasm_
runtime_ ⚠is_ underlying_ binary_ freeable - wasm_
runtime_ ⚠is_ wasi_ mode - wasm_
runtime_ ⚠is_ xip_ file - wasm_
runtime_ ⚠join_ thread - wasm_
runtime_ ⚠load - wasm_
runtime_ ⚠load_ ex - wasm_
runtime_ ⚠load_ from_ sections - wasm_
runtime_ ⚠lookup_ function - wasm_
runtime_ ⚠lookup_ memory - wasm_
runtime_ ⚠lookup_ wasi_ start_ function - wasm_
runtime_ ⚠malloc - wasm_
runtime_ ⚠module_ dup_ data - wasm_
runtime_ ⚠module_ free - wasm_
runtime_ ⚠module_ malloc - wasm_
runtime_ ⚠realloc - wasm_
runtime_ ⚠register_ module - wasm_
runtime_ ⚠register_ natives - wasm_
runtime_ ⚠register_ natives_ raw - wasm_
runtime_ ⚠reset_ shared_ heap_ chain - wasm_
runtime_ ⚠resolve_ symbols - wasm_
runtime_ ⚠set_ bounds_ checks - wasm_
runtime_ ⚠set_ context - wasm_
runtime_ ⚠set_ context_ spread - wasm_
runtime_ ⚠set_ custom_ data - wasm_
runtime_ ⚠set_ default_ running_ mode - wasm_
runtime_ ⚠set_ enlarge_ mem_ error_ callback - wasm_
runtime_ ⚠set_ exception - wasm_
runtime_ ⚠set_ instruction_ count_ limit - wasm_
runtime_ ⚠set_ log_ level - wasm_
runtime_ ⚠set_ max_ thread_ num - wasm_
runtime_ ⚠set_ module_ inst - wasm_
runtime_ ⚠set_ module_ name - wasm_
runtime_ ⚠set_ module_ reader - wasm_
runtime_ ⚠set_ native_ stack_ boundary - wasm_
runtime_ ⚠set_ running_ mode - wasm_
runtime_ ⚠set_ user_ data - wasm_
runtime_ ⚠set_ wasi_ addr_ pool - wasm_
runtime_ ⚠set_ wasi_ args - wasm_
runtime_ ⚠set_ wasi_ args_ ex - wasm_
runtime_ ⚠set_ wasi_ ns_ lookup_ pool - wasm_
runtime_ ⚠shared_ heap_ free - wasm_
runtime_ ⚠shared_ heap_ malloc - wasm_
runtime_ ⚠spawn_ exec_ env - wasm_
runtime_ ⚠spawn_ thread - wasm_
runtime_ ⚠start_ debug_ instance - wasm_
runtime_ ⚠start_ debug_ instance_ with_ port - wasm_
runtime_ ⚠sum_ wasm_ exec_ time - wasm_
runtime_ ⚠terminate - wasm_
runtime_ ⚠thread_ env_ inited - wasm_
runtime_ ⚠unchain_ shared_ heaps - wasm_
runtime_ ⚠unload - wasm_
runtime_ ⚠unregister_ natives - wasm_
runtime_ ⚠validate_ app_ addr - wasm_
runtime_ ⚠validate_ app_ str_ addr - wasm_
runtime_ ⚠validate_ native_ addr - wasm_
table_ ⚠get_ func_ inst - wasm_
table_ ⚠type_ get_ elem_ kind - wasm_
table_ ⚠type_ get_ init_ size - wasm_
table_ ⚠type_ get_ max_ size - wasm_
table_ ⚠type_ get_ shared
Type Aliases§
- Running
Mode - WASMC
ApiFrame - WASM
Function Instance Common - WASM
Memory Type - enlarge_
memory_ error_ callback_ t - enlarge_
memory_ error_ reason_ t - log_
level_ t - mem_
alloc_ type_ t - module_
destroyer - module_
reader - package_
type_ t - wasm_
exec_ env_ t - wasm_
func_ type_ t - wasm_
function_ inst_ t - wasm_
global_ type_ t - wasm_
import_ export_ kind_ t - wasm_
memory_ inst_ t - wasm_
memory_ type_ t - wasm_
module_ inst_ t - wasm_
module_ t - wasm_
section_ list_ t - wasm_
shared_ heap_ t - wasm_
table_ type_ t - wasm_
thread_ callback_ t - wasm_
thread_ t - wasm_
valkind_ enum - wasm_
valkind_ t