This project demonstrates how to use Tokio Postgres with Rustls to connect to PostgreSQL over TLS.
env PG.DBNAME=postgres PG.HOST=localhost PG.PORT=6432 PG.USER=postgres PG.PASSWORD=postgres DB_CA_CERT=docker/files/cert/ca.pem RUST_LOG=debug cargo run