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

#117 in Database interfaces

Download history 5833/week @ 2023-12-23 7720/week @ 2023-12-30 9646/week @ 2024-01-06 11412/week @ 2024-01-13 12329/week @ 2024-01-20 13193/week @ 2024-01-27 13991/week @ 2024-02-03 14803/week @ 2024-02-10 12073/week @ 2024-02-17 11381/week @ 2024-02-24 11542/week @ 2024-03-02 10110/week @ 2024-03-09 11107/week @ 2024-03-16 11097/week @ 2024-03-23 11967/week @ 2024-03-30 11212/week @ 2024-04-06

47,247 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–30MB
~599K SLoC