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

#73 in Database interfaces

Download history 23076/week @ 2024-09-19 26570/week @ 2024-09-26 29368/week @ 2024-10-03 29769/week @ 2024-10-10 36307/week @ 2024-10-17 33144/week @ 2024-10-24 31681/week @ 2024-10-31 30554/week @ 2024-11-07 31880/week @ 2024-11-14 30596/week @ 2024-11-21 26671/week @ 2024-11-28 33945/week @ 2024-12-05 29696/week @ 2024-12-12 16188/week @ 2024-12-19 10351/week @ 2024-12-26 23584/week @ 2025-01-02

86,709 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
~484K SLoC