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

#78 in Database interfaces

Download history 30757/week @ 2024-10-07 31388/week @ 2024-10-14 35533/week @ 2024-10-21 32609/week @ 2024-10-28 31205/week @ 2024-11-04 31902/week @ 2024-11-11 31029/week @ 2024-11-18 26693/week @ 2024-11-25 30253/week @ 2024-12-02 35312/week @ 2024-12-09 25724/week @ 2024-12-16 10292/week @ 2024-12-23 17088/week @ 2024-12-30 34423/week @ 2025-01-06 36483/week @ 2025-01-13 31121/week @ 2025-01-20

119,697 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

~15–25MB
~482K SLoC