| Crates.io | tokio-postgres-tls |
| lib.rs | tokio-postgres-tls |
| version | 0.12.0 |
| created_at | 2024-06-30 13:02:30.426826+00 |
| updated_at | 2024-06-30 13:02:30.426826+00 |
| description | Rustls integration for tokio-postgres |
| homepage | |
| repository | https://github.com/i18n-now/tokio-postgres-tls |
| max_upload_size | |
| id | 1287978 |
| size | 10,979 |
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.