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

#74 in Database interfaces

Download history 31846/week @ 2024-10-30 29953/week @ 2024-11-06 31947/week @ 2024-11-13 32055/week @ 2024-11-20 26063/week @ 2024-11-27 32397/week @ 2024-12-04 30930/week @ 2024-12-11 20975/week @ 2024-12-18 10312/week @ 2024-12-25 24144/week @ 2025-01-01 36656/week @ 2025-01-08 32301/week @ 2025-01-15 38102/week @ 2025-01-22 43774/week @ 2025-01-29 60229/week @ 2025-02-05 35096/week @ 2025-02-12

183,019 downloads per month
Used in 25 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

~16–26MB
~497K SLoC