Skip to main content

Crate surrealism_runtime

Crate surrealism_runtime 

Source
Expand description

Host runtime for Surrealism WASM plugins.

Runs on the SurrealDB server. Loads .surli packages, manages the controller pool, and executes guest functions with epoch-based timeouts.

Re-exports§

pub use net_allow::ResolvedNetAllow;
pub use net_allow::resolve_allow_net;

Modules§

capabilities
config
controller
Per-execution WASM controller.
epoch
Shared WASM engines with optional epoch-based timeout enforcement.
exports
Exports manifest: function signatures baked into .surli archives.
host
InvocationContext trait and WIT host implementation.
kv
Per-module key-value store (in-memory only).
net_allow
Resolve allow_net strings once at module load time.
package
.surli archive format: tar + zstd containing mod.wasm, config, exports, and optional surrealism/fs/ filesystem. Only WASM components are accepted.
runtime
Compiled WASM runtime (shared, immutable, thread-safe).
store
WASM store data for the component model.

Enums§

SurrealismError

Constants§

SDK_VERSION
The version of the Surrealism SDK that this runtime was compiled against. Used by the build toolchain to verify that a module’s surrealism dependency matches before compilation.

Traits§

PrefixErr