[package]
edition = "2024"
rust-version = "1.90"
name = "facet-tokio-postgres"
version = "0.43.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"
repository = "https://github.com/facet-rs/facet"
[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",
]
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.facet-core]
version = "0.43.1"
[dependencies.facet-reflect]
version = "0.43.1"
[dependencies.jiff]
version = "0.2"
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"
[dev-dependencies.testcontainers]
version = "0.26"
[dev-dependencies.testcontainers-modules]
version = "0.14"
features = ["postgres"]
[dev-dependencies.time]
version = "^0.3.44"
features = [
"formatting",
"macros",
"parsing",
]
[dev-dependencies.tokio]
version = "^1.48.0"
features = [
"macros",
"rt-multi-thread",
"macros",
]
default-features = false
[dev-dependencies.uuid]
version = "1"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(facet_no_doc)"]