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

#111 in Database interfaces

Download history 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 13396/week @ 2024-04-06 12637/week @ 2024-04-13 17010/week @ 2024-04-20 18053/week @ 2024-04-27 14953/week @ 2024-05-04 12625/week @ 2024-05-11

65,109 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
~586K SLoC