I've added a runner override to use the wasm-server-runner for easy devlopment -- it's a localhost webserver to provide the WASM binary & it's bootstrap code. There is also target-specific config related to the RNG back-end.
18 lines
428 B
TOML
18 lines
428 B
TOML
[package]
|
|
name = "chaos-game-rs"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
bevy = "0.16"
|
|
rand = "0.9.2"
|
|
rand_chacha = "0.9.0"
|
|
|
|
[features]
|
|
dynamic_linking = ["bevy/dynamic_linking"]
|
|
|
|
# For WASM builds, we need to use the browser's RNG back-end.
|
|
# This also requires the extra rustflags in `.cargo/config.toml`
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.3.3", features = ["wasm_js"] }
|