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

#108 in Database interfaces

Download history 60562/week @ 2025-08-01 58705/week @ 2025-08-08 70965/week @ 2025-08-15 66845/week @ 2025-08-22 61256/week @ 2025-08-29 74447/week @ 2025-09-05 78120/week @ 2025-09-12 72132/week @ 2025-09-19 82914/week @ 2025-09-26 71996/week @ 2025-10-03 74988/week @ 2025-10-10 80772/week @ 2025-10-17 84310/week @ 2025-10-24 79679/week @ 2025-10-31 81570/week @ 2025-11-07 65690/week @ 2025-11-14

326,732 downloads per month
Used in 39 crates (19 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–27MB
~474K SLoC