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

#72 in Database interfaces

Download history 17070/week @ 2024-07-17 16864/week @ 2024-07-24 16281/week @ 2024-07-31 17505/week @ 2024-08-07 18291/week @ 2024-08-14 19369/week @ 2024-08-21 18628/week @ 2024-08-28 20469/week @ 2024-09-04 19733/week @ 2024-09-11 21580/week @ 2024-09-18 27105/week @ 2024-09-25 27746/week @ 2024-10-02 30533/week @ 2024-10-09 34936/week @ 2024-10-16 34461/week @ 2024-10-23 31775/week @ 2024-10-30

137,504 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
~480K SLoC