12 releases (breaking)
0.10.0 | Apr 14, 2023 |
---|---|
0.9.0 | Nov 16, 2021 |
0.8.0 | Feb 10, 2021 |
0.6.0 | Dec 2, 2020 |
0.2.0 | Jul 12, 2019 |
#98 in Database interfaces
53,536 downloads per month
Used in 6 crates
(5 directly)
8KB
154 lines
tokio-postgres-rustls
This is an integration between the rustls TLS stack and the tokio-postgres asynchronous PostgreSQL client library.
Example
let config = rustls::ClientConfig::builder()
.with_safe_defaults()
.with_root_certificates(rustls::RootCertStore::empty())
.with_no_client_auth();
let tls = tokio_postgres_rustls::MakeRustlsConnect::new(config);
let connect_fut = tokio_postgres::connect("sslmode=require host=localhost user=postgres", tls);
// ...
License
tokio-postgres-rustls is distributed under the MIT license.
Dependencies
~12–20MB
~443K SLoC