Make it run in wasm

This commit is contained in:
2025-06-12 20:38:33 +02:00
parent 3908e6d913
commit 83ad2068e0
5 changed files with 19 additions and 6 deletions

View File

@ -30,9 +30,12 @@ base64 = "0.22.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11.8"
rand = "0.9.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
wasm-bindgen-futures = "0.4.50"
web-sys = "0.3.77"
[patch.crates-io]
egui = { git = "https://github.com/emilk/egui", rev = "f2ce6424f3a32f47308fb9871d540c01377b2cd9" }