Skip to main content

Crate smg_wasm

Crate smg_wasm 

Source
Expand description

WebAssembly (WASM) module support for Shepherd Model Gateway

This crate provides WASM component execution capabilities using the WebAssembly Component Model. It supports middleware execution at various attach points (OnRequest, OnResponse) with async support.

Re-exports§

pub use config::WasmRuntimeConfig;
pub use errors::Result;
pub use errors::WasmError;
pub use errors::WasmManagerError;
pub use errors::WasmModuleError;
pub use errors::WasmRuntimeError;
pub use module::MiddlewareAttachPoint;
pub use module::WasmMetrics;
pub use module::WasmModule;
pub use module::WasmModuleAddRequest;
pub use module::WasmModuleAddResponse;
pub use module::WasmModuleAddResult;
pub use module::WasmModuleAttachPoint;
pub use module::WasmModuleDescriptor;
pub use module::WasmModuleListResponse;
pub use module::WasmModuleMeta;
pub use module::WasmModuleType;
pub use module_manager::WasmModuleManager;
pub use runtime::WasmRuntime;
pub use spec::apply_modify_action_to_headers;
pub use spec::build_wasm_headers_from_axum_headers;
pub use spec::smg;
pub use spec::Smg;
pub use types::WasiState;
pub use types::WasmComponentInput;
pub use types::WasmComponentOutput;

Modules§

config
WASM Runtime Configuration
errors
WASM Error Types
module
WASM Module Data Structures and Types
module_manager
WASM Module Manager
runtime
WASM Runtime
spec
WebAssembly Interface Bindings and Type Conversions
types
WASM Component Type System