16 releases (breaking)

new 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

#72 in Database interfaces

Download history 16666/week @ 2024-07-05 17063/week @ 2024-07-12 17645/week @ 2024-07-19 16307/week @ 2024-07-26 16438/week @ 2024-08-02 18726/week @ 2024-08-09 18607/week @ 2024-08-16 19886/week @ 2024-08-23 17902/week @ 2024-08-30 19484/week @ 2024-09-06 20023/week @ 2024-09-13 25167/week @ 2024-09-20 27239/week @ 2024-09-27 29901/week @ 2024-10-04 29547/week @ 2024-10-11 36251/week @ 2024-10-18

128,050 downloads per month
Used in 23 crates (12 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
~470K SLoC