From 693b8d5519def0860a29e47cf28ff80bcf8eb6bd Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Fri, 6 Jun 2025 13:24:04 +0200 Subject: [PATCH] Exclude sqlx-pool-guard from wasm builds --- common/client-core/surb-storage/Cargo.toml | 5 +++-- common/credential-storage/Cargo.toml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/client-core/surb-storage/Cargo.toml b/common/client-core/surb-storage/Cargo.toml index 449ce0d589..1706008302 100644 --- a/common/client-core/surb-storage/Cargo.toml +++ b/common/client-core/surb-storage/Cargo.toml @@ -17,14 +17,15 @@ tokio = { workspace = true, features = ["fs"] } nym-crypto = { path = "../../crypto", optional = true, default-features = false } nym-sphinx = { path = "../../nymsphinx" } nym-task = { path = "../../task" } -sqlx-pool-guard = { path = "../../../sqlx-pool-guard" } - [target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx] workspace = true features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate"] optional = true +[target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx-pool-guard] +path = "../../../sqlx-pool-guard" + [build-dependencies] tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } sqlx = { workspace = true, features = [ diff --git a/common/credential-storage/Cargo.toml b/common/credential-storage/Cargo.toml index 07a01486df..aa9b615805 100644 --- a/common/credential-storage/Cargo.toml +++ b/common/credential-storage/Cargo.toml @@ -19,8 +19,9 @@ zeroize = { workspace = true, features = ["zeroize_derive"] } nym-credentials = { path = "../credentials" } nym-compact-ecash = { path = "../nym_offline_compact_ecash" } nym-ecash-time = { path = "../ecash-time" } -sqlx-pool-guard = { path = "../../sqlx-pool-guard" } +[target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx-pool-guard] +path = "../../sqlx-pool-guard" [target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx] workspace = true