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"