Crates.io | tokio-postgres-rustls |
lib.rs | tokio-postgres-rustls |
version | 0.13.0 |
source | src |
created_at | 2019-07-12 22:27:02.583656 |
updated_at | 2024-10-19 22:21:38.545473 |
description | Rustls integration for tokio-postgres |
homepage | |
repository | https://github.com/jbg/tokio-postgres-rustls |
max_upload_size | |
id | 148589 |
size | 13,957 |
This is an integration between the rustls TLS stack and the tokio-postgres asynchronous PostgreSQL client library.
let config = rustls::ClientConfig::builder()
.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);
// ...
tokio-postgres-rustls is distributed under the MIT license.