#postgres #tls #ssl #native #postgresql #driver

postgres-native-tls

TLS support for tokio-postgres via native-tls

8 releases (4 breaking)

0.5.0 Dec 25, 2020
0.4.0 Oct 17, 2020
0.3.0 Dec 24, 2019
0.3.0-alpha.2 Nov 28, 2019
0.1.0-rc.1 Jun 30, 2019
Download history 1946/week @ 2021-10-03 1497/week @ 2021-10-10 1350/week @ 2021-10-17 1443/week @ 2021-10-24 1697/week @ 2021-10-31 1657/week @ 2021-11-07 1945/week @ 2021-11-14 1579/week @ 2021-11-21 1439/week @ 2021-11-28 1694/week @ 2021-12-05 2405/week @ 2021-12-12 1888/week @ 2021-12-19 794/week @ 2021-12-26 1384/week @ 2022-01-02 1865/week @ 2022-01-09 1702/week @ 2022-01-16

5,854 downloads per month
Used in 25 crates (18 directly)

MIT/Apache

260KB
6K SLoC

Rust-Postgres

CircleCI

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

~8MB
~166K SLoC

_