Skip to main content

Crate wamrx_sys

Crate wamrx_sys 

Source
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§

InstantiationArgs
InstantiationArgs2
LoadArgs
MemAllocOption__bindgen_ty_1
MemAllocOption__bindgen_ty_2
NativeSymbol
RuntimeInitArgs
SharedHeapInitArgs
WASMExecEnv
WASMFuncType
WASMGlobalType
WASMMemory
WASMMemoryInstance
WASMModuleCommon
WASMModuleInstanceCommon
WASMSharedHeap
WASMTableType
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§

RunningMode
WASMCApiFrame
WASMFunctionInstanceCommon
WASMMemoryType
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

Unions§

MemAllocOption
wasm_export_t__bindgen_ty_1
wasm_import_t__bindgen_ty_1
wasm_val_t__bindgen_ty_1