async work

This commit is contained in:
Simon Gardling
2022-03-30 10:45:43 -04:00
parent 96d9d3b170
commit e53dab559f
4 changed files with 61 additions and 15 deletions

View File

@@ -9,6 +9,10 @@ repository = "https://github.com/Titaniumtown/YTBN-Graphing-Software"
[lib]
crate-type = ["cdylib"]
[features]
threading = ["async-lock", "rayon"]
[profile.release]
debug = false
codegen-units = 1
@@ -48,7 +52,9 @@ phf_codegen = "0.10.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
instant = { version = "0.1.12" }
tracing-subscriber = "0.3.9"
rayon = { git = "https://github.com/rayon-rs/rayon.git" }
rayon = { git = "https://github.com/rayon-rs/rayon.git", optional = true }
async-lock = { git = "https://github.com/smol-rs/async-lock.git", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] }