tokio-postgres-rustls

Crates.iotokio-postgres-rustls
lib.rstokio-postgres-rustls
version0.12.0
sourcesrc
created_at2019-07-12 22:27:02.583656
updated_at2024-04-02 22:19:44.81645
descriptionRustls integration for tokio-postgres
homepage
repositoryhttps://github.com/jbg/tokio-postgres-rustls
max_upload_size
id148589
size11,585
Jasper (jbg)

documentation

README

tokio-postgres-rustls

This is an integration between the rustls TLS stack and the tokio-postgres asynchronous PostgreSQL client library.

Crate

API Documentation

Example

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);
// ...

License

tokio-postgres-rustls is distributed under the MIT license.

Commit count: 56

cargo fmt