# 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 = "pgwire"
version = "0.28.0"
authors = ["Ning Sun <sunng@pm.me>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Postgresql wire protocol implemented as a library"
homepage = "https://github.com/sunng87/pgwire"
documentation = "https://docs.rs/crate/pgwire/"
readme = "README.md"
keywords = [
    "database",
    "postgresql",
]
categories = ["database"]
license = "MIT/Apache-2.0"
repository = "https://github.com/sunng87/pgwire"

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

[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = ["server-api-aws-lc-rs"]

[[example]]
name = "copy"
path = "examples/copy.rs"
required-features = ["server-api-aws-lc-rs"]

[[example]]
name = "duckdb"
path = "examples/duckdb.rs"
required-features = [
    "server-api-aws-lc-rs",
    "_duckdb",
]

[[example]]
name = "gluesql"
path = "examples/gluesql.rs"
required-features = ["server-api-aws-lc-rs"]

[[example]]
name = "scram"
path = "examples/scram.rs"
required-features = [
    "server-api-aws-lc-rs",
    "scram",
]

[[example]]
name = "secure_server"
path = "examples/secure_server.rs"
required-features = ["server-api-aws-lc-rs"]

[[example]]
name = "server"
path = "examples/server.rs"
required-features = ["server-api-aws-lc-rs"]

[[example]]
name = "sqlite"
path = "examples/sqlite.rs"
required-features = [
    "server-api-aws-lc-rs",
    "_sqlite",
]

[[example]]
name = "transaction"
path = "examples/transaction.rs"
required-features = ["server-api-aws-lc-rs"]

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

[dependencies.aws-lc-rs]
version = "1.7"
optional = true

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

[dependencies.bytes]
version = "1.1.0"

[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true

[dependencies.derive-new]
version = "0.7"

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

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.lazy-regex]
version = "3.3"
features = ["lite"]
default-features = false

[dependencies.md5]
version = "0.7"
optional = true

[dependencies.postgres-types]
version = "0.2"
features = [
    "with-chrono-0_4",
    "array-impls",
]
optional = true

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

[dependencies.ring]
version = "0.17"
optional = true

[dependencies.rust_decimal]
version = "1.35"
features = ["db-postgres"]
optional = true

[dependencies.stringprep]
version = "0.1.2"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.19"
features = [
    "net",
    "rt",
    "io-util",
]
optional = true

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

[dependencies.tokio-util]
version = "0.7.3"
features = [
    "codec",
    "io",
]
optional = true

[dependencies.x509-certificate]
version = "0.24"
optional = true

[dev-dependencies.duckdb]
version = "1.0.0"

[dev-dependencies.gluesql]
version = "0.15"
features = ["memory-storage"]
default-features = false

[dev-dependencies.rusqlite]
version = "0.32.1"
features = ["column_decltype"]

[dev-dependencies.rustls-pemfile]
version = "2.0"

[dev-dependencies.rustls-pki-types]
version = "1.0"

[dev-dependencies.tokio]
version = "1.19"
features = [
    "rt-multi-thread",
    "net",
    "macros",
]

[features]
_aws-lc-rs = [
    "dep:aws-lc-rs",
    "tokio-rustls/aws-lc-rs",
]
_bundled = [
    "duckdb/bundled",
    "rusqlite/bundled",
]
_duckdb = []
_ring = [
    "dep:ring",
    "tokio-rustls/ring",
]
_sqlite = []
default = ["server-api-aws-lc-rs"]
scram = [
    "dep:base64",
    "dep:stringprep",
    "dep:x509-certificate",
]
server-api = [
    "dep:tokio",
    "dep:tokio-util",
    "dep:futures",
    "dep:async-trait",
    "dep:rand",
    "dep:md5",
    "dep:hex",
    "dep:postgres-types",
    "dep:chrono",
    "dep:rust_decimal",
]
server-api-aws-lc-rs = [
    "server-api",
    "_aws-lc-rs",
]
server-api-ring = [
    "server-api",
    "_ring",
]