surrealism_runtime/lib.rs
1//! Host runtime for Surrealism WASM plugins.
2//!
3//! Runs on the SurrealDB server. Loads `.surli` packages, manages the
4//! controller pool, and executes guest functions with epoch-based timeouts.
5
6pub mod capabilities;
7pub mod config;
8pub mod controller;
9pub mod epoch;
10pub mod exports;
11pub mod host;
12pub mod kv;
13pub mod net_allow;
14pub mod package;
15pub mod runtime;
16pub mod store;
17mod wasi_context;
18
19pub use net_allow::{ResolvedNetAllow, resolve_allow_net};
20pub use surrealism_types::err::{PrefixErr, SurrealismError};
21
22/// The version of the Surrealism SDK that this runtime was compiled against.
23/// Used by the build toolchain to verify that a module's `surrealism`
24/// dependency matches before compilation.
25pub const SDK_VERSION: &str = env!("CARGO_PKG_VERSION");