djc / tokio-postgres-rustls

Rustls integration for tokio-postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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::new();
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.

About

Rustls integration for tokio-postgres

License:MIT License


Languages

Language:Rust 100.0%