diff --git a/sqlx-pool-guard/Cargo.toml b/sqlx-pool-guard/Cargo.toml index 5482346200..cef202e4df 100644 --- a/sqlx-pool-guard/Cargo.toml +++ b/sqlx-pool-guard/Cargo.toml @@ -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