15 releases (breaking)

0.12.0 Apr 2, 2024
0.11.1 Jan 18, 2024
0.10.0 Apr 14, 2023
0.9.0 Nov 16, 2021
0.2.0 Jul 12, 2019

#112 in Database interfaces

Download history 12858/week @ 2024-01-18 12317/week @ 2024-01-25 13864/week @ 2024-02-01 14343/week @ 2024-02-08 13510/week @ 2024-02-15 11464/week @ 2024-02-22 11537/week @ 2024-02-29 10129/week @ 2024-03-07 10813/week @ 2024-03-14 11441/week @ 2024-03-21 11423/week @ 2024-03-28 13499/week @ 2024-04-04 12108/week @ 2024-04-11 15495/week @ 2024-04-18 17270/week @ 2024-04-25 14548/week @ 2024-05-02

62,344 downloads per month
Used in 17 crates (9 directly)

MIT license

11KB
199 lines

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.

Dependencies

~17–28MB
~585K SLoC