tokio-postgres-rustls2

Crates.iotokio-postgres-rustls2
lib.rstokio-postgres-rustls2
version
sourcesrc
created_at2024-10-11 23:50:26.399207
updated_at2024-10-12 00:12:45.219083
descriptionRustls integration for tokio-postgres
homepage
repositoryhttps://github.com/aumetra/tokio-postgres-rustls2
max_upload_size
id1405996
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`
size0
Aumetra Weisman (aumetra)

documentation

README

tokio-postgres-rustls2

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.

Crate

API Documentation

Example

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);
// ...

License

tokio-postgres-rustls2 is distributed under the MIT license.

Commit count: 64

cargo fmt