#postgres #tls #native #postgresql

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

#410 in Database interfaces

Download history 2701/week @ 2023-02-10 2429/week @ 2023-02-17 2764/week @ 2023-02-24 3043/week @ 2023-03-03 3211/week @ 2023-03-10 3700/week @ 2023-03-17 2873/week @ 2023-03-24 2345/week @ 2023-03-31 1899/week @ 2023-04-07 2120/week @ 2023-04-14 2488/week @ 2023-04-21 2590/week @ 2023-04-28 2050/week @ 2023-05-05 2374/week @ 2023-05-12 2243/week @ 2023-05-19 2170/week @ 2023-05-26

9,267 downloads per month
Used in 32 crates (26 directly)

MIT/Apache

270KB
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

~7–14MB
~270K SLoC