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

#75 in Database interfaces

Download history 26885/week @ 2024-09-24 27351/week @ 2024-10-01 30417/week @ 2024-10-08 33452/week @ 2024-10-15 34912/week @ 2024-10-22 32331/week @ 2024-10-29 30184/week @ 2024-11-05 32743/week @ 2024-11-12 31217/week @ 2024-11-19 26330/week @ 2024-11-26 31199/week @ 2024-12-03 33323/week @ 2024-12-10 23860/week @ 2024-12-17 9808/week @ 2024-12-24 20023/week @ 2024-12-31 28922/week @ 2025-01-07

87,571 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–26MB
~482K SLoC