# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.87.0"
name = "nym-sqlx-pool-guard"
version = "1.21.0"
authors = ["Nym Technologies SA"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform-specific functions for SQLX dbs"
homepage = "https://nymtech.net"
documentation = "https://nymtech.net"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/nymtech/nym"
resolver = "2"

[lib]
name = "nym_sqlx_pool_guard"
path = "src/lib.rs"

[dependencies.tracing]
version = "0.1.41"

[dev-dependencies.tempfile]
version = "3.20"

[dev-dependencies.tracing-subscriber]
version = "0.3.20"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.proc_pidinfo]
version = "0.1.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio-rustls",
    "sqlite",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.47"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "fs",
]

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

[lints.clippy]
complexity = "deny"
dbg_macro = "deny"
exit = "deny"
expect_used = "deny"
panic = "deny"
perf = "deny"
style = "deny"
suspicious = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tokio_unstable)"]
