Crates.io | tokio-postgres-rustls2 |
lib.rs | tokio-postgres-rustls2 |
version | |
source | src |
created_at | 2024-10-11 23:50:26.399207 |
updated_at | 2024-10-12 00:12:45.219083 |
description | Rustls integration for tokio-postgres |
homepage | |
repository | https://github.com/aumetra/tokio-postgres-rustls2 |
max_upload_size | |
id | 1405996 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This is a fork of
tokio-postgres-rustls
.Unfortunately its development died down, so I decided to pick it up again to ensure it is updated in the future.
This is an integration between the rustls TLS stack and the tokio-postgres asynchronous PostgreSQL client library.
let config = rustls::ClientConfig::builder()
.with_root_certificates(rustls::RootCertStore::empty())
.with_no_client_auth();
let tls = tokio_postgres_rustls2::MakeRustlsConnect::new(config);
let connect_fut = tokio_postgres::connect("sslmode=require host=localhost user=postgres", tls);
// ...
tokio-postgres-rustls2 is distributed under the MIT license.