//! Stateless utility modules registered once at engine build via
//! `Engine::register_static_module`. They have no per-call state, no
//! cross-app sensitivity, and no `SdkCallCx` — distinguishing them
//! from stateful service modules (KV, docs, …) which hook into
//! `sdk::register_all` instead. See [docs/sdk-shape.md](../../../../../docs/sdk-shape.md).

use rhai::Engine as RhaiEngine;

pub mod base64;
pub mod hex;
pub mod json;
pub mod random;
pub mod regex;
pub mod time;
pub mod url;

pub fn register_stdlib(engine: &mut RhaiEngine) {
    regex::register(engine);
    random::register(engine);
    time::register(engine);
    json::register(engine);
    base64::register(engine);
    hex::register(engine);
    url::register(engine);
}
