Skip to main content

Module runtime

Module runtime 

Source

Structs§

RawProviderEvent
StoreData
Data stored in each wasmtime Store.
WasmRuntime
Wrapper around wasmtime::Engine with fuel-metering enabled.

Constants§

DEFAULT_FUEL
Default fuel budget per WASM invocation.
DEFAULT_MAX_MEMORY
Default maximum memory for WASM modules (16 MB).
MAX_INJECTED_ACTIONS_PER_CALL
Maximum number of actions a hook may inject per invocation.
MAX_INJECTED_ACTION_BYTES_PER_CALL
Maximum total payload bytes of actions injected per invocation.
MAX_LOG_MESSAGES_PER_CALL
Maximum number of log messages forwarded per invocation; extras are counted and dropped.
MAX_LOG_MESSAGE_BYTES
Maximum length of a single forwarded log message; longer messages are truncated.
MAX_PROVIDER_EVENTS_PER_CALL
Maximum number of provider events a hook may emit per invocation.
MAX_PROVIDER_EVENT_BYTES_PER_CALL
Maximum total bytes (type + payload) of provider events emitted per invocation.
MAX_TABLES
Maximum number of tables a hook instance may define.
MAX_TABLE_ELEMENTS
Maximum number of elements across a hook instance’s tables.