Files
chaos-game-rs/Cargo.toml
Robert Garrett fbcc16bc22 Add WASM-specific configurations
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.
2025-09-07 16:50:19 -05:00

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"] }