From 25207a158659e7be58a99cd449597dad78b6063d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 7 Jul 2020 16:11:33 +0200 Subject: [PATCH] matrix-sdk: Make the wasm feature for future-timers target specific. --- matrix_sdk/Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/matrix_sdk/Cargo.toml b/matrix_sdk/Cargo.toml index d970ef84..9d3cbb34 100644 --- a/matrix_sdk/Cargo.toml +++ b/matrix_sdk/Cargo.toml @@ -23,7 +23,6 @@ serde_json = "1.0.53" thiserror = "1.0.19" tracing = "0.1.14" url = "2.1.1" -futures-timer = { version = "3.0.2", features = ["wasm-bindgen"] } matrix-sdk-common-macros = { version = "0.1.0", path = "../matrix_sdk_common_macros" } matrix-sdk-common = { version = "0.1.0", path = "../matrix_sdk_common" } @@ -38,6 +37,13 @@ version = "0.2.4" default-features = false features = ["std", "std-future"] +[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures-timer] +version = "3.0.2" + +[target.'cfg(target_arch = "wasm32")'.dependencies.futures-timer] +version = "3.0.2" +features = ["wasm-bindgen"] + [dev-dependencies] async-trait = "0.1.31" dirs = "2.0.2"