Module runtime_adapter

Module runtime_adapter 

Source
Expand description

Runtime adapter for supporting multiple plugin runtimes

This module provides an abstraction layer that allows MockForge to load and execute plugins written in different languages and compiled with different WASM runtimes.

Supported runtimes:

  • Rust (native, via wasmtime)
  • TinyGo (Go compiled to WASM)
  • AssemblyScript (TypeScript-like, compiled to WASM)
  • Remote (HTTP/gRPC-based plugins in any language)

Structs§

AssemblyScriptAdapter
RemoteAdapter
RemoteAuthConfig
RemoteRuntimeConfig
Configuration for remote plugin runtime
RuntimeAdapterFactory
Factory for creating runtime adapters
RustAdapter
TinyGoAdapter

Enums§

RemoteProtocol
RuntimeType
Enum representing different plugin runtime types

Traits§

RuntimeAdapter
Trait that all runtime adapters must implement

Functions§

detect_runtime_type
Detect runtime type from WASM binary