Hide tokio and sqlx behind not(wasm32)

This commit is contained in:
Andrej Mihajlov
2025-06-06 13:34:56 +02:00
parent 3593631e4a
commit 9d82d6d111
+8 -7
View File
@@ -8,15 +8,16 @@ license.workspace = true
workspace = true
[dependencies]
tokio = { workspace = true, features = [
"rt-multi-thread",
"macros",
"time",
"fs",
] }
sqlx = { workspace = true, features = ["runtime-tokio-rustls", "sqlite"] }
tracing.workspace = true
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.sqlx]
workspace = true
features = ["runtime-tokio-rustls", "sqlite"]
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio]
workspace = true
features = ["rt-multi-thread", "macros", "time", "fs"]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
proc_pidinfo.workspace = true