Disable Rhai time to keep WASM loadable

This commit is contained in:
Richard Zink committed 2026-11-05 13:14:52 +01:00
1 parent 6175a383a8
commit cc50ed04be
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -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)`
+1 -1
View File
@@ -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"