From cc50ed04be50588e954354e155a2006a3eb5da76 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Thu, 5 Nov 2026 13:14:52 +0100 Subject: [PATCH] Disable Rhai time to keep WASM loadable --- AGENTS.md | 1 + Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 57e4a44..bc1344a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -68,6 +68,7 @@ But before committing a completed change, the full local checks should pass unle ## Campaign scripting conventions - Mission script language: Rhai. +- The Rust Rhai dependency must keep `no_time` enabled in `Cargo.toml` so the WASM output stays loadable by the macroquad JS bundle. - Current implemented runtime hook: `on_start(m)`. - Current implemented script actions: - `m.log(text)` diff --git a/Cargo.toml b/Cargo.toml index 32d104a..9514c4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" [dependencies] macroquad = { version = "0.4" } -rhai = { version = "1.27.0", default-features = false, features = ["std"] } +rhai = { version = "1.27.0", default-features = false, features = ["std", "no_time"] } serde = { version = "1", features = ["derive"] } serde_json = "1"