Skip to main content

Crate wasm3x_sys

Crate wasm3x_sys 

Source
Expand description

Raw FFI bindings to the Wasm3 WebAssembly interpreter.

The bindings are generated at build time with bindgen from the vendored Wasm3 C sources and expose the public m3_* C-API verbatim. Prefer the safe wrapper crate over using these bindings directly.

Modules§

M3ValueType

Structs§

M3BacktraceFrame
M3BacktraceInfo
M3Environment
M3ErrorInfo
M3Function
M3Global
M3ImportContext
M3ImportInfo
M3Module
M3Runtime
M3TaggedValue
__va_list_tag

Constants§

M3_ARCH
M3_COMPILER_CLANG
M3_VERSION
M3_VERSION_MAJOR
M3_VERSION_MINOR
M3_VERSION_REV

Statics§

m3Err_argumentCountMismatch
m3Err_argumentTypeMismatch
m3Err_functionImportMissing
m3Err_functionLookupFailed
m3Err_functionStackOverflow
m3Err_functionStackUnderrun
m3Err_globaIndexOutOfBounds
m3Err_globalLookupFailed
m3Err_globalMemoryNotAllocated
m3Err_globalNotMutable
m3Err_globalTypeMismatch
m3Err_incompatibleWasmVersion
m3Err_invalidTypeId
m3Err_lebOverflow
m3Err_malformedFunctionSignature
m3Err_mallocFailed
m3Err_mallocFailedCodePage
m3Err_misorderedWasmSection
m3Err_missingCompiledCode
m3Err_missingUTF8
m3Err_moduleAlreadyLinked
m3Err_moduleNotLinked
m3Err_noCompiler
m3Err_none
m3Err_restrictedOpcode
m3Err_settingImmutableGlobal
m3Err_tooManyArgsRets
m3Err_tooManyMemorySections
m3Err_trapAbort
m3Err_trapDivisionByZero
m3Err_trapExit
m3Err_trapIndirectCallTypeMismatch
m3Err_trapIntegerConversion
m3Err_trapIntegerOverflow
m3Err_trapOutOfBoundsMemoryAccess
m3Err_trapStackOverflow
m3Err_trapTableElementIsNull
m3Err_trapTableIndexOutOfRange
m3Err_trapUnreachable
m3Err_typeCountMismatch
m3Err_typeMismatch
m3Err_unknownOpcode
m3Err_wasmMalformed
m3Err_wasmMemoryOverflow
m3Err_wasmMissingInitExpr
m3Err_wasmOverrun
m3Err_wasmSectionOverrun
m3Err_wasmSectionUnderrun
m3Err_wasmUnderrun

Functions§

m3_Call
m3_CallArgv
m3_CallV
m3_CallVL
m3_CompileModule
m3_FindFunction
m3_FindGlobal
m3_FreeEnvironment
m3_FreeModule
m3_FreeRuntime
m3_GetArgCount
m3_GetArgType
m3_GetBacktrace
m3_GetErrorInfo
m3_GetFunctionModule
m3_GetFunctionName
m3_GetGlobal
m3_GetGlobalType
m3_GetMemory
m3_GetMemorySize
m3_GetModuleName
m3_GetModuleRuntime
m3_GetResults
m3_GetResultsV
m3_GetResultsVL
m3_GetRetCount
m3_GetRetType
m3_GetTableFunction
m3_GetUserData
m3_LinkRawFunction
m3_LinkRawFunctionEx
m3_LoadModule
m3_NewEnvironment
m3_NewRuntime
m3_ParseModule
m3_PrintM3Info
m3_PrintProfilerInfo
m3_PrintRuntimeInfo
m3_ResetErrorInfo
m3_RunStart
m3_SetCustomSectionHandler
m3_SetGlobal
m3_SetModuleName
m3_Yield
wasm3x_GetGlobalMutable

Type Aliases§

IM3BacktraceFrame
IM3BacktraceInfo
IM3Environment
IM3Function
IM3Global
IM3ImportContext
IM3ImportInfo
IM3Module
IM3Runtime
IM3TaggedValue
M3RawCall
M3Result
M3SectionHandler
__builtin_va_list
va_list

Unions§

M3TaggedValue_M3ValueUnion