16 releases (breaking)

0.13.0 Oct 19, 2024
0.12.0 Apr 2, 2024
0.11.1 Jan 18, 2024
0.10.0 Apr 14, 2023
0.2.0 Jul 12, 2019

#67 in Database interfaces

Download history 16829/week @ 2024-08-03 18655/week @ 2024-08-10 19174/week @ 2024-08-17 20177/week @ 2024-08-24 18169/week @ 2024-08-31 18488/week @ 2024-09-07 20916/week @ 2024-09-14 25210/week @ 2024-09-21 27744/week @ 2024-09-28 30584/week @ 2024-10-05 30490/week @ 2024-10-12 36324/week @ 2024-10-19 31926/week @ 2024-10-26 30971/week @ 2024-11-02 32426/week @ 2024-11-09 25471/week @ 2024-11-16

126,986 downloads per month
Used in 26 crates (14 directly)

MIT license

13KB
236 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

~15–25MB
~481K SLoC