[package]
name = "nym-sqlx-pool-guard"
description = "Platform-specific functions for SQLX dbs"
version.workspace = true
authors.workspace = true
edition = "2024"
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
rust-version.workspace = true
readme.workspace = true
publish = true

[lints]
workspace = true

[dependencies]
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

[target.'cfg(windows)'.dependencies]
windows = { version = "0.61", features = [
    "Win32",
    "Win32_System",
    "Win32_System_Memory",
    "Win32_System_Threading",
    "Win32_Storage_FileSystem",
    "Wdk_System_SystemInformation",
] }

[dev-dependencies]
tempfile.workspace = true
tracing-subscriber.workspace = true
