跳至主要内容

WebAssembly Proposals

Standard WebAssembly Features

WasmEdge supports the following WebAssembly proposals. These proposals are likely to become official WebAssembly specifications in the future.

ProposalWasmEdge CLI flagWasmEdge C API enumerationDefault turning onInterpreter modeAOT mode
Import/Export of Mutable Globals--disable-import-export-mut-globalsWasmEdge_Proposal_ImportExportMutGlobals✓ (since 0.8.2)
Non-trapping float-to-int conversions--disable-non-trap-float-to-intWasmEdge_Proposal_NonTrapFloatToIntConversions✓ (since 0.8.2)
Sign-extension operators--disable-sign-extension-operatorsWasmEdge_Proposal_SignExtensionOperators✓ (since 0.8.2)
Multi-value--disable-multi-valueWasmEdge_Proposal_MultiValue✓ (since 0.8.2)
Reference Types--disable-reference-typesWasmEdge_Proposal_ReferenceTypes✓ (since 0.8.2)
Bulk memory operations--disable-bulk-memoryWasmEdge_Proposal_BulkMemoryOperations✓ (since 0.8.2)
Fixed-width SIMD--disable-simdWasmEdge_Proposal_SIMD✓ (since 0.9.0)✓ (since 0.8.2)✓ (since 0.8.2)
Tail call--enable-tail-callWasmEdge_Proposal_TailCall✓ (since 0.10.0)✓ (since 0.10.0)
Extended Constant Expressions--enable-extended-constWasmEdge_Proposal_ExtendedConst✓ (since 0.10.0)✓ (since 0.10.0)
Typed Function References--enable-function-referenceWasmEdge_Proposal_FunctionReferences✓ (since 0.14.0)✓ (since 0.14.0)
Garbage collection--enable-gcWasmEdge_Proposal_GC✓ (since 0.14.0)
Multiple memories--enable-multi-memoryWasmEdge_Proposal_MultiMemories✓ (since 0.9.1)✓ (since 0.9.1)
Threads--enable-threadsWasmEdge_Proposal_Threads✓ (since 0.10.1)✓ (since 0.10.1)
Exception handling--enable-exception-handlingWasmEdge_Proposal_ExceptionHandling✓ (since 0.14.0)
Component Model--enable-componentWasmEdge_Proposal_ComponentLoader only (since 0.14.0)

The following proposals are under development and may be supported in the future:

WASI proposals

WasmEdge implements the following WASI proposals:

ProposalPlatform: Linux x86_64Platform: Linux aarch64Platform: x86_64 MacOSPlatform: MacOS arm64
Sockets✓ (since 0.10.0)✓ (since 0.10.0)✓ (since 0.10.0)✓ (since 0.10.0)
Crypto✓ (since 0.10.1)✓ (since 0.10.1)✓ (since 0.13.0)✓ (since 0.13.0)
Logging✓ (since 0.13.0)✓ (since 0.13.0)✓ (since 0.13.0)✓ (since 0.13.0)
Machine Learning (wasi-nn)✓ OpenVINO (since 0.10.1)
✓ PyTorch (since 0.11.1)
✓ TensorFlow-Lite (since 0.11.2)
✓ Ggml (since 0.13.4)
✓ Ggml (since 0.13.4)✓ Ggml (since 0.13.4)✓ Ggml (since 0.13.4)
proxy-wasm✓ (since 0.8.2, interpreter)✓ (since 0.11.2, interpreter)

The following proposals is under development and may be supported in the future:

  • TensorFlow backend of WASI-NN