#postgresql #tokio #language

postgres-shared

Internal crate used by postgres and postgres-tokio

8 releases

Uses old Rust 2015

0.4.2 Aug 23, 2018
0.4.1 Feb 12, 2018
0.4.0 Jul 23, 2017
0.3.0 Jun 11, 2017
0.1.0 Dec 26, 2016

#1 in #postgres

Download history 1062/week @ 2024-12-13 566/week @ 2024-12-20 221/week @ 2024-12-27 685/week @ 2025-01-03 1342/week @ 2025-01-10 990/week @ 2025-01-17 699/week @ 2025-01-24 1014/week @ 2025-01-31 1624/week @ 2025-02-07 801/week @ 2025-02-14 1021/week @ 2025-02-21 987/week @ 2025-02-28 1194/week @ 2025-03-07 1509/week @ 2025-03-14 1171/week @ 2025-03-21 639/week @ 2025-03-28

4,717 downloads per month
Used in 58 crates (2 directly)

MIT license

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

~4–6MB
~124K SLoC