[package]
edition = "2021"
rust-version = "1.85"
name = "pg-wired"
version = "0.2.0"
authors = ["Josh Burgess <joshualoganburgess@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimal async PostgreSQL wire protocol v3 client: connection, extended query, pipelining, COPY, LISTEN/NOTIFY, TLS, SCRAM."
homepage = "https://github.com/joshburgess/resolute"
documentation = "https://docs.rs/pg-wired"
readme = "README.md"
keywords = [
"postgres",
"postgresql",
"database",
"async",
"driver",
]
categories = [
"database",
"asynchronous",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshburgess/resolute"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
tls = [
"dep:rustls",
"dep:tokio-rustls",
"dep:rustls-pki-types",
"dep:webpki-roots",
]
[lib]
name = "pg_wired"
path = "src/lib.rs"
[[example]]
name = "raw_query"
path = "examples/raw_query.rs"
[[test]]
name = "async_pool_test"
path = "tests/async_pool_test.rs"
[[test]]
name = "async_test"
path = "tests/async_test.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "protocol_fuzz"
path = "tests/protocol_fuzz.rs"
[[test]]
name = "tls_test"
path = "tests/tls_test.rs"
[[bench]]
name = "parse_microbench"
path = "benches/parse_microbench.rs"
harness = false
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1"
[dependencies.hmac]
version = "0.12"
[dependencies.md5]
version = "0.7"
[dependencies.rand]
version = "0.9"
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"logging",
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.rustls-pki-types]
version = "1"
optional = true
[dependencies.sha2]
version = "0.10"
[dependencies.socket2]
version = "0.5"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"sync",
"rt",
"macros",
"time",
]
[dependencies.tokio-rustls]
version = "0.26"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.webpki-roots]
version = "0.26"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]