wasm thread

This commit is contained in:
Nixon 2022-08-26 18:38:52 +08:00
commit 61cb0ce6b4
5 changed files with 131 additions and 8 deletions

View file

@ -15,14 +15,16 @@ rand = "0.8.5"
rand_distr = "0.4.3"
rapier2d = "0.14.0"
serde = { version = "1.0.144", features = ["derive"] }
ticktock = "0.8.0"
wasm-bindgen = "0.2"
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]
hexodsp = { git = "https://git.txmn.tk/tuxmain/HexoDSP", default-features = false }
cpal = "0.14.0"
hexodsp = { git = "https://github.com/WeirdConstructor/HexoDSP", default-features = false }
ticktock = "0.8.0"
[target."cfg(target_arch = \"wasm32\")".dependencies]
cpal = { version = "0.14.0", features = ["wasm-bindgen"] }
wasm_thread = { git = "https://github.com/chemicstry/wasm_thread" }
[profile.dev.package."*"]
opt-level = 3