encore-postgres-rustls 0.1.0

TLS support for tokio-postgres via rustls
Documentation
[package]
name = "encore-postgres-rustls"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "TLS support for tokio-postgres via rustls"
repository = "https://github.com/encoredev/v2-encore"
readme = "../ENCORE.md"

# The rustls counterpart of postgres-native-tls, so that reaching a database
# over TLS needs no OpenSSL: Encore's own crate, not part of the upstream fork.

[lib]
name = "postgres_rustls"

[features]
default = ["runtime"]
runtime = ["tokio-postgres/runtime"]

[dependencies]
# The server certificate's hash, for channel binding.
ring = "0.17"
# `ring`, as everywhere else in Encore: `aws-lc-rs` cross-compiles poorly.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
tokio = "1.0"
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
tokio-postgres = { package = "encore-tokio-postgres", version = "0.7.13", path = "../tokio-postgres", default-features = false }

[dev-dependencies]
# Certificates of each signature algorithm, for the channel binding tests.
rcgen = "0.14"
# A stream to handshake over, for the server name tests.
tokio = { version = "1.0", features = ["io-util", "macros", "rt"] }