Skip to main content

Crate toywasmx_sys

Crate toywasmx_sys 

Source
Expand description

Raw FFI bindings to the toywasm WebAssembly interpreter.

This crate is generated by bindgen at build time and exposes the C API verbatim. It is not meant to be used directly; see the safe toywasmx crate for an idiomatic, Wasmtime/Wasmi-inspired wrapper.

Structs§

__va_list_tag
bitmap
cell
cluster
context
data
element
exec_context
exec_context__bindgen_ty_2
exec_context__bindgen_ty_3
exec_context__bindgen_ty_4
exec_context__bindgen_ty_5
exec_context__bindgen_ty_7
exec_context__bindgen_ty_1_local_info_fast
exec_context__bindgen_ty_1_local_info_slow
exec_context__bindgen_ty_6__bindgen_ty_1
exec_context__bindgen_ty_6__bindgen_ty_2
exec_context__bindgen_ty_6__bindgen_ty_3
exec_options
exec_stat
exportdesc
expr
expr_exec_info
func
funcframe
funcinst
funcinst__bindgen_ty_1__bindgen_ty_1
funcinst__bindgen_ty_1__bindgen_ty_2
funcref
functype
global
globalinst
globaltype
host_func
host_instance
host_module
import
import_object
import_object_entry
importdesc
instance
instance__bindgen_ty_1
instance__bindgen_ty_2
instance__bindgen_ty_3
instance__bindgen_ty_4
jump
jump_cache
label
limits
load_context
load_options
localcellidx
localchunk
localtype
mem_context
meminst
memtype
module
name
namemap
nametable
naming
report
restart_info
restart_info__bindgen_ty_1__bindgen_ty_1
restart_info__bindgen_ty_1_restart_hostfunc
resulttype
sched
slist_elem
slist_entry
slist_head
tableinst
tabletype
taginst
tagtype
timespec
trap_info
type_annotation
type_annotations
val
validation_context
wasi_instance
wasm_export

Constants§

DATA_MODE_ACTIVE
DATA_MODE_PASSIVE
ELEM_MODE_ACTIVE
ELEM_MODE_DECLARATIVE
ELEM_MODE_PASSIVE
ETOYWASMRESTART
ETOYWASMTRAP
ETOYWASMUSERINTERRUPT
EXEC_EVENT_BRANCH
EXEC_EVENT_CALL
EXEC_EVENT_NONE
EXEC_EVENT_RESTART_INSN
EXNREF_NCELLS
EXTERNTYPE_FUNC
EXTERNTYPE_GLOBAL
EXTERNTYPE_MEMORY
EXTERNTYPE_TABLE
FUNCIDX_INVALID
GLOBAL_CONST
GLOBAL_VAR
MEMTYPE_FLAG_64
MEMTYPE_FLAG_CUSTOM_PAGE_SIZE
MEMTYPE_FLAG_SHARED
NUMTYPE_NCELLS
RESTART_HOSTFUNC
RESTART_NONE
RESTART_TIMER
SECTION_ID_code
SECTION_ID_custom
SECTION_ID_data
SECTION_ID_datacount
SECTION_ID_element
SECTION_ID_export
SECTION_ID_function
SECTION_ID_global
SECTION_ID_import
SECTION_ID_memory
SECTION_ID_start
SECTION_ID_table
SECTION_ID_tag
SECTION_ID_type
TAG_TYPE_exception
TOYWASM_EXCEPTION_MAX_CELLS
TOYWASM_JUMP_CACHE2_SIZE
TRAP_ATOMIC_WAIT_ON_NON_SHARED_MEMORY
TRAP_CALL_INDIRECT_FUNCTYPE_MISMATCH
TRAP_CALL_INDIRECT_NULL_FUNCREF
TRAP_CALL_INDIRECT_OUT_OF_BOUNDS_TABLE_ACCESS
TRAP_DIV_BY_ZERO
TRAP_INDIRECT_FUNCTION_TABLE_NOT_FOUND
TRAP_INTEGER_OVERFLOW
TRAP_INVALID_CONVERSION_TO_INTEGER
TRAP_MEMORY_NOT_FOUND
TRAP_MISC
TRAP_OUT_OF_BOUNDS_DATA_ACCESS
TRAP_OUT_OF_BOUNDS_ELEMENT_ACCESS
TRAP_OUT_OF_BOUNDS_MEMORY_ACCESS
TRAP_OUT_OF_BOUNDS_TABLE_ACCESS
TRAP_THROW_REF_NULL
TRAP_TOO_MANY_FRAMES
TRAP_TOO_MANY_STACKCELLS
TRAP_UNALIGNED_ATOMIC_OPERATION
TRAP_UNALIGNED_MEMORY_ACCESS
TRAP_UNCAUGHT_EXCEPTION
TRAP_UNREACHABLE
TRAP_UNRESOLVED_IMPORTED_FUNC
TRAP_VOLUNTARY_EXIT
TRAP_VOLUNTARY_THREAD_EXIT
TYPE_ANYREF
TYPE_UNKNOWN
TYPE_exnref
TYPE_externref
TYPE_f32
TYPE_f64
TYPE_funcref
TYPE_i32
TYPE_i64
TYPE_v128
VECTYPE_NCELLS
WASM_MAGIC
WASM_MAX_MEMORY_SIZE
WASM_PAGE_SHIFT

Statics§

g_empty_rt⚠

Functions§

_vec_free⚠
_vec_prealloc⚠
_vec_resize⚠
abstime_from_reltime_ms⚠
abstime_from_reltime_ns⚠
abstime_to_reltime_ms_roundup⚠
array_extend⚠
array_shrink⚠
bitmap_alloc⚠
bitmap_free⚠
bitmap_set⚠
bitmap_test⚠
cconv_deref_func_ptr⚠
cconv_func_table⚠
cconv_memory⚠
cells_copy⚠
cells_move⚠
cells_zero⚠
check_functype_with_string⚠
check_interrupt⚠
check_interrupt_interval_ms⚠
clear_functype⚠
clear_name⚠
clear_resulttype⚠
compare_functype⚠
compare_name⚠
compare_resulttype⚠
convert_timespec⚠
create_satisfying_functions⚠
create_satisfying_shared_memories⚠
exec_context_clear⚠
exec_context_init⚠
exec_context_print_stats⚠
exec_options_set_defaults⚠
exec_pop_vals⚠
exec_push_vals⚠
expr_end⚠
frame_locals_cellidx⚠
funcinst_func⚠
funcinst_functype⚠
functype_free⚠
functype_from_string⚠
functype_string_free⚠
functype_to_string⚠
global_get⚠
global_instance_create⚠
global_instance_destroy⚠
global_set⚠
host_func_check_align⚠
host_func_copyin⚠
host_func_copyout⚠
host_func_dump_params⚠
host_func_getptr⚠
host_func_getptr2⚠
host_func_mul_size⚠
host_func_trap⚠
import_object_alloc⚠
import_object_create_for_exports⚠
import_object_create_for_host_funcs⚠
import_object_create_for_wasi⚠
import_object_destroy⚠
import_object_find_entry⚠
instance_create⚠
instance_create_no_init⚠
instance_destroy⚠
instance_execute_continue⚠
instance_execute_func⚠
instance_execute_func_nocheck⚠
instance_execute_handle_restart⚠
instance_execute_handle_restart_once⚠
instance_execute_init⚠
instance_print_stats⚠
is_numtype⚠
is_reftype⚠
is_valtype⚠
is_vectype⚠
load_context_clear⚠
load_context_init⚠
load_options_set_defaults⚠
localtype_cellidx⚠
localtype_cellsize⚠
mem_alloc⚠
mem_calloc⚠
mem_context_clear⚠
mem_context_init⚠
mem_context_setlimit⚠
mem_extend⚠
mem_extend_zero⚠
mem_free⚠
mem_shrink⚠
mem_zalloc⚠
memory_grow⚠
memory_instance_create⚠
memory_instance_destroy⚠
memory_instance_getptr2⚠
memtype_page_shift⚠
memtype_page_size⚠
module_create⚠
module_destroy⚠
module_find_export⚠
module_functype⚠
module_globaltype⚠
module_import⚠
module_memtype⚠
module_print_stats⚠
module_tabletype⚠
module_tagtype⚠
module_tagtype_functype⚠
nametable_clear⚠
nametable_init⚠
nametable_lookup_data⚠
nametable_lookup_func⚠
nametable_lookup_global⚠
nametable_lookup_module⚠
report_clear⚠
report_error⚠
report_getmessage⚠
report_init⚠
resulttype_cellidx⚠
resulttype_cellsize⚠
schedule_call_from_hostfunc⚠
set_name_cstr⚠
slist_head_init⚠
slist_insert_head⚠
slist_insert_tail⚠
slist_remove⚠
slist_remove_head⚠
table_get⚠
table_get_func⚠
table_grow⚠
table_instance_create⚠
table_instance_destroy⚠
table_set⚠
taginst_functype⚠
timespec_add⚠
timespec_cmp⚠
timespec_from_ns⚠
timespec_now⚠
timespec_sleep⚠
timespec_sub⚠
timespec_to_ms⚠
trap_with_id⚠
val_from_cells⚠
val_to_cells⚠
vals_from_cells⚠
vals_to_cells⚠
valtype_cellsize⚠
vreport⚠
vtrap⚠
wasi_convert_errno⚠
wasi_instance_add_hostfd⚠
wasi_instance_create⚠
wasi_instance_destroy⚠
wasi_instance_exit_code⚠
wasi_instance_populate_stdio_with_hostfd⚠
wasi_instance_prestat_add⚠
wasi_instance_set_args⚠
wasi_instance_set_environ⚠
wasi_instance_set_memory⚠
xstrnstr⚠
xzalloc⚠

Type Aliases§

__builtin_va_list
__clockid_t
__syscall_slong_t
__time_t
atomic_uint
clockid_t
data_mode
element_mode
exec_event
externtype
globalmut
host_func_t
restart_type
section_id
tag_type
trapid
va_list
valtype

Unions§

exec_context__bindgen_ty_1
exec_context__bindgen_ty_6
funcinst__bindgen_ty_1
import_object_entry__bindgen_ty_1
importdesc__bindgen_ty_1
restart_info__bindgen_ty_1
v128
val__bindgen_ty_1