[package]
edition = "2024"
rust-version = "1.85"
name = "xitca-postgres"
version = "0.4.0"
authors = ["fakeshadow <everestshadow@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "an async postgres client"
readme = "README.md"
keywords = [
"xitca-web",
"database",
"postgres",
"sql",
"async",
]
categories = ["database"]
license = "Apache-2.0"
repository = "https://github.com/HFQR/xitca-web"
resolver = "2"
[features]
compat = []
compio = ["dep:compio"]
io-uring = [
"xitca-io/runtime-uring",
"dep:tokio-uring-xitca",
]
nightly = []
quic = [
"dep:quinn",
"dep:rustls-pemfile",
"tls",
]
tls = [
"dep:xitca-tls",
"xitca-tls/rustls-ring-crypto",
"dep:sha2",
"dep:webpki-roots",
]
[lib]
name = "xitca_postgres"
path = "src/lib.rs"
[[example]]
name = "execute"
path = "examples/execute.rs"
[[example]]
name = "macro"
path = "examples/macro.rs"
[[example]]
name = "pooling"
path = "examples/pooling.rs"
[[example]]
name = "sync"
path = "examples/sync.rs"
[[test]]
name = "runtime"
path = "tests/runtime.rs"
[[test]]
name = "sync"
path = "tests/sync.rs"
[dependencies.compio]
version = "0.17"
features = ["bytes"]
optional = true
[dependencies.fallible-iterator]
version = "0.2"
[dependencies.futures-core]
version = "0.3"
default-features = false
[dependencies.lru]
version = "0.16"
default-features = false
[dependencies.percent-encoding]
version = "2"
[dependencies.postgres-protocol]
version = "0.6.5"
[dependencies.postgres-types]
version = "0.2"
[dependencies.quinn]
version = "0.11"
features = ["ring"]
optional = true
[dependencies.rustls-pemfile]
version = "2"
optional = true
[dependencies.sha2]
version = "0.10.8"
optional = true
[dependencies.tokio]
version = "1.48"
features = [
"rt",
"sync",
]
[dependencies.tokio-uring-xitca]
version = "0.1.1"
optional = true
[dependencies.tracing]
version = "0.1.40"
default-features = false
[dependencies.webpki-roots]
version = "1"
optional = true
[dependencies.xitca-io]
version = "0.5.1"
features = ["runtime"]
[dependencies.xitca-tls]
version = "0.5.0"
optional = true
[dependencies.xitca-unsafe-collection]
version = "0.2.0"
features = ["bytes"]
[dev-dependencies.bb8]
version = "0.9.0"
[dev-dependencies.futures]
version = "0.3"
default-features = false
[dev-dependencies.postgres-derive]
version = "0.4"
[dev-dependencies.postgres-types]
version = "0.2"
features = ["with-uuid-1"]
[dev-dependencies.rcgen]
version = "0.14"
[dev-dependencies.tokio]
version = "1.47.1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[dev-dependencies.uuid]
version = "1"
[dev-dependencies.xitca-postgres-codegen]
version = "0.1"
[lints.clippy]
await_holding_lock = "allow"
needless_return = "allow"
new_without_default = "allow"
[lints.rust]
unreachable_patterns = "allow"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tokio_unstable)"]