# 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-auth"
version = "0.14.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authentication strategies for SQL Server connections"
readme = "README.md"
keywords = [
    "sql-server",
    "authentication",
    "azure",
    "security",
]
categories = [
    "authentication",
    "database",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/praxiomlabs/rust-mssql-driver"

[package.metadata.docs.rs]
features = [
    "azure-identity",
    "cert-auth",
    "zeroize",
    "always-encrypted",
    "azure-keyvault",
]

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

[features]
always-encrypted = [
    "dep:aes",
    "dep:cbc",
    "dep:hmac",
    "dep:sha1",
    "dep:sha2",
    "dep:rsa",
    "dep:rand",
    "dep:parking_lot",
]
azure-identity = [
    "dep:azure_identity",
    "dep:azure_core",
    "dep:time",
]
azure-keyvault = [
    "always-encrypted",
    "dep:azure_security_keyvault_keys",
    "dep:azure_identity",
    "dep:azure_core",
    "dep:url",
]
cert-auth = [
    "dep:azure_identity",
    "dep:azure_core",
    "dep:time",
    "dep:base64",
    "dep:p12",
    "dep:rustls-pemfile",
    "azure_identity/client_certificate",
]
default = []
integrated-auth = ["dep:libgssapi"]
sspi-auth = [
    "dep:sspi",
    "dep:windows",
]
windows-certstore = [
    "always-encrypted",
    "dep:windows",
]
zeroize = ["dep:zeroize"]

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

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

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

[dependencies.aes]
version = "0.8"
optional = true

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

[dependencies.azure_core]
version = "1.0"
optional = true

[dependencies.azure_identity]
version = "1.0"
optional = true

[dependencies.azure_security_keyvault_keys]
version = "1.0"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1.9"

[dependencies.cbc]
version = "0.1"
features = ["std"]
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.libgssapi]
version = "0.11"
optional = true

[dependencies.p12]
version = "0.6"
optional = true

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.rsa]
version = "0.9"
features = ["sha2"]
optional = true

[dependencies.rustls-pemfile]
version = "2.2"
optional = true

[dependencies.sha1]
version = "0.10"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.sspi]
version = "0.18"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
optional = true

[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true

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

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

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_Security_Cryptography",
    "Win32_Security_Authentication_Identity",
    "Win32_Security_Credentials",
]
optional = true

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

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