# 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 = "2021"
rust-version = "1.75"
name = "bsql-driver-postgres"
version = "0.25.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PostgreSQL wire protocol driver for bsql — binary protocol, arena allocation, zero-copy"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/smir-ant/bsql"

[features]
async = ["dep:tokio"]
chrono = ["dep:chrono"]
decimal = ["dep:rust_decimal"]
default = []
detect-n-plus-one = ["dep:log"]
time = ["dep:time"]
tls = [
    "dep:rustls",
    "dep:webpki-roots",
    "dep:tokio-rustls",
    "dep:rustls-pemfile",
]
uuid = ["dep:uuid"]

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

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

[dependencies.base64]
version = "0.22"
features = ["alloc"]
default-features = false

[dependencies.bsql-arena]
version = "0.25.0"

[dependencies.chrono]
version = "0.4"
features = [
    "std",
    "clock",
]
optional = true
default-features = false

[dependencies.hmac]
version = "0.12"
default-features = false

[dependencies.log]
version = "0.4"
optional = true
default-features = false

[dependencies.md-5]
version = "0.10"
default-features = false

[dependencies.pbkdf2]
version = "0.12"
features = ["hmac"]
default-features = false

[dependencies.rand]
version = "0.9"
features = [
    "std",
    "os_rng",
]
default-features = false

[dependencies.rapidhash]
version = "4.4.1"

[dependencies.rust_decimal]
version = "1"
features = ["std"]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23.37"
features = [
    "ring",
    "std",
]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2"
features = ["std"]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10"
default-features = false

[dependencies.simdutf8]
version = "0.1"
features = ["std"]
default-features = false

[dependencies.smallvec]
version = "1"
default-features = false

[dependencies.socket2]
version = "0.5"
default-features = false

[dependencies.time]
version = "0.3.36"
features = ["std"]
optional = true
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "net",
    "io-util",
    "sync",
]
optional = true
default-features = false

[dependencies.tokio-rustls]
version = "0.26"
features = ["ring"]
optional = true
default-features = false

[dependencies.uuid]
version = ">=1.8, <1.22"
optional = true
default-features = false

[dependencies.webpki-roots]
version = "1.0.6"
optional = true
default-features = false

[dependencies.zeroize]
version = "1"
default-features = false

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.rcgen]
version = "0.13"
features = ["ring"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
default-features = false
