fix(common): wasm_bindgen dependency feature

instant doesn't need wasm_bindgen on non wasm targets
master
Antoine Martin 2021-09-12 00:57:35 +02:00 committed by Damir Jelić
parent 1ea9c9a915
commit 51072a5dab
1 changed files with 8 additions and 1 deletions

View File

@ -12,7 +12,6 @@ version = "0.4.0"
[dependencies]
async-trait = "0.1.50"
instant = { version = "0.1.9", features = ["wasm-bindgen", "now"] }
ruma = { version = "0.4.0", features = ["client-api-c"] }
serde = "1.0.126"
@ -24,6 +23,14 @@ version = "1.7.1"
default-features = false
features = ["rt", "sync"]
[target.'cfg(target_arch = "wasm32")'.dependencies.instant]
version = "0.1.9"
features = ["wasm-bindgen", "now"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.instant]
version = "0.1.9"
features = ["now"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
futures = "0.3.15"
futures-locks = { version = "0.6.0", default-features = false }