rhaiscript / playground

A Rhai scripting playground that runs Rhai scripts using WebAssembly in a web browser.
https://rhai.rs/playground
MIT License
20 stars 5 forks source link

Modification to handle wasm build #21

Closed schungx closed 1 year ago

schungx commented 1 year ago

Since ahash changed its features set structure, more stuff is required in order to compile for wasm.

[dependencies]
rhai = { version = "1.10.0", default-features = false, features = [ "only_i64", "no_optimize", "internals", "wasm-bindgen" ] }

# getrandom/js must be added manually to make sure it compiles since ahash/runtime-rng requires a random number source
getrandom = { version = "0.2", features = ["js"] }

I'm fixing some of these inconsistencies with the upcoming release, but there doesn't seem to be a way to avoid setting default-features = false so it is breaking for wasm builds.

schungx commented 1 year ago

The ahash problem is resolved now.