From 4551d7908084223ee642bf388eb862ef7fbc37d6 Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Fri, 6 Jun 2025 15:00:40 +0200 Subject: [PATCH] Hide tokio behind feature --- common/client-core/surb-storage/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/client-core/surb-storage/Cargo.toml b/common/client-core/surb-storage/Cargo.toml index 1706008302..303675a220 100644 --- a/common/client-core/surb-storage/Cargo.toml +++ b/common/client-core/surb-storage/Cargo.toml @@ -12,12 +12,15 @@ dashmap.workspace = true log.workspace = true thiserror.workspace = true time.workspace = true -tokio = { workspace = true, features = ["fs"] } nym-crypto = { path = "../../crypto", optional = true, default-features = false } nym-sphinx = { path = "../../nymsphinx" } nym-task = { path = "../../task" } +[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio] +workspace = true +features = ["fs"] + [target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx] workspace = true features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate"]