#postgresql #openssl

postgres-openssl

TLS support for tokio-postgres via openssl

8 releases (4 breaking)

0.5.1 Feb 2, 2025
0.5.0 Dec 25, 2020
0.4.0 Oct 17, 2020
0.3.0 Dec 23, 2019
0.1.0 Nov 12, 2018

#1753 in Database interfaces

Download history 24896/week @ 2025-02-01 28153/week @ 2025-02-08 24976/week @ 2025-02-15 29352/week @ 2025-02-22 28902/week @ 2025-03-01 26284/week @ 2025-03-08 27377/week @ 2025-03-15 29213/week @ 2025-03-22 26411/week @ 2025-03-29 32682/week @ 2025-04-05 26443/week @ 2025-04-12 24306/week @ 2025-04-19 23400/week @ 2025-04-26 25579/week @ 2025-05-03 23934/week @ 2025-05-10 20687/week @ 2025-05-17

97,671 downloads per month
Used in 23 crates (18 directly)

MIT/Apache

300KB
6.5K SLoC

Rust-Postgres

PostgreSQL support for Rust.

postgres Latest Version

Documentation

A native, synchronous PostgreSQL client.

tokio-postgres Latest Version

Documentation

A native, asynchronous PostgreSQL client.

postgres-types Latest Version

Documentation

Conversions between Rust and Postgres types.

postgres-native-tls Latest Version

Documentation

TLS support for postgres and tokio-postgres via native-tls.

postgres-openssl Latest Version

Documentation

TLS support for postgres and tokio-postgres via openssl.

Running test suite

The test suite requires postgres to be running in the correct configuration. The easiest way to do this is with docker:

  1. Install docker and docker-compose.
    1. On ubuntu: sudo apt install docker.io docker-compose.
  2. Make sure your user has permissions for docker.
    1. On ubuntu: sudo usermod -aG docker $USER
  3. Change to top-level directory of rust-postgres repo.
  4. Run docker-compose up -d.
  5. Run cargo test.
  6. Run docker-compose stop.

Dependencies

~8–18MB
~268K SLoC