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
WASM runtime adapter for plugins compiled from AssemblyScript
RemoteAdapter
Runtime adapter for plugins running on remote servers (HTTP or gRPC)
RemoteAuthConfig
Authentication configuration for remote plugin runtime
RemoteRuntimeConfig
Configuration for remote plugin runtime
RuntimeAdapterFactory
Factory for creating runtime adapters
RustAdapter
WASM runtime adapter for plugins compiled from Rust
TinyGoAdapter
WASM runtime adapter for plugins compiled from TinyGo

Enums§

RemoteProtocol
Protocol for remote plugin communication
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