Fix WASM build

This commit is contained in:
Pascal Engélibert 2022-08-24 11:31:17 +02:00
commit ce37ddd0bd
7 changed files with 38 additions and 203 deletions

View file

@ -9,12 +9,16 @@ edition = "2021"
bevy = "0.8.0"
bevy-inspector-egui = "0.12.1"
bevy_rapier2d = "0.16.2"
cpal = "0.14.0"
crossbeam-channel = "0.5.6"
hexodsp = { git = "https://github.com/WeirdConstructor/HexoDSP" }
ticktock = "0.8.0"
rand = "0.8.5"
rand_distr = "0.4.3"
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
cpal = "0.14.0"
hexodsp = { git = "https://github.com/WeirdConstructor/HexoDSP", default-features = false }
ticktock = "0.8.0"
[target."cfg(target_arch = \"wasm32\")".dependencies]
[profile.dev.package."*"]
opt-level = 3