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

#69 in Database interfaces

Download history 19227/week @ 2024-08-18 20023/week @ 2024-08-25 18577/week @ 2024-09-01 18576/week @ 2024-09-08 20726/week @ 2024-09-15 25477/week @ 2024-09-22 27691/week @ 2024-09-29 30678/week @ 2024-10-06 30990/week @ 2024-10-13 35758/week @ 2024-10-20 32190/week @ 2024-10-27 31105/week @ 2024-11-03 32056/week @ 2024-11-10 31187/week @ 2024-11-17 26652/week @ 2024-11-24 29326/week @ 2024-12-01

120,781 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
~483K SLoC