# 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.92"
name = "facet-tokio-postgres"
version = "0.50.0-rc.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Deserialize tokio-postgres Rows into any type implementing Facet"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
    "postgres",
    "tokio-postgres",
    "facet",
    "deserialization",
    "database",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT OR Apache-2.0"

[package.metadata."docs.rs"]
rustdoc-args = [
    "--html-in-header",
    "arborium-header.html",
]

[features]
chrono = ["facet-core/chrono"]
default = ["std"]
jiff02 = [
    "dep:jiff",
    "facet-core/jiff02",
    "tokio-postgres/with-jiff-0_2",
    "postgres-types/with-jiff-0_2",
]
jsonb = []
rust_decimal = [
    "dep:rust_decimal",
    "facet-core/rust_decimal",
]
std = []
test-postgres = []
time = ["facet-core/time"]
uuid = ["facet-core/uuid"]

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

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

[dependencies.dibs-jsonb]
version = "0.2.0-rc.1"

[dependencies.facet]
version = "0.50.0-rc.1"
optional = true

[dependencies.facet-core]
version = "0.50.0-rc.1"

[dependencies.facet-json]
version = "0.50.0-rc.1"

[dependencies.facet-reflect]
version = "0.50.0-rc.1"

[dependencies.jiff]
version = "^0.2.16"
optional = true

[dependencies.postgres-types]
version = "^0.2"

[dependencies.rust_decimal]
version = "^1.38.0"
features = [
    "std",
    "db-tokio-postgres",
]
optional = true
default-features = false

[dependencies.tokio-postgres]
version = "^0.7"

[dev-dependencies.chrono]
version = "^0.4.42"
features = ["alloc"]
default-features = false

[dev-dependencies.jiff]
version = "^0.2.16"

[dev-dependencies.testcontainers]
version = "^0.27"

[dev-dependencies.testcontainers-modules]
version = "^0.15"
features = ["postgres"]

[dev-dependencies.time]
version = "^0.3.44"
features = [
    "formatting",
    "macros",
    "parsing",
]

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

[dev-dependencies.uuid]
version = "^1.19.0"
