# 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.88"
name = "mssql-driver-pool"
version = "0.12.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Connection pooling for SQL Server with sp_reset_connection support"
readme = "README.md"
keywords = [
    "sql-server",
    "pool",
    "connection",
    "async",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/praxiomlabs/rust-mssql-driver"

[package.metadata.docs.rs]
features = [
    "otel",
    "filestream",
]

[package.metadata.cargo-machete]
ignored = ["tokio-test"]

[features]
default = []
filestream = ["mssql-client/filestream"]
integrated-auth = ["mssql-client/integrated-auth"]
otel = ["mssql-client/otel"]
sspi-auth = ["mssql-client/sspi-auth"]

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

[[example]]
name = "connection_pool"
path = "examples/connection_pool.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.mssql-client]
version = "0.12.0"

[dependencies.parking_lot]
version = "0.12"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "net",
    "io-util",
    "sync",
    "time",
    "macros",
    "rt",
    "rt-multi-thread",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio-test]
version = "0.4"

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

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
