17 releases

0.4.7 Sep 25, 2025
0.4.6 Sep 16, 2024
0.4.5 Aug 20, 2023
0.4.4 Mar 27, 2023
0.2.2 Nov 19, 2016

#83 in #test-suite

Download history 44951/week @ 2025-06-28 45259/week @ 2025-07-05 43150/week @ 2025-07-12 49051/week @ 2025-07-19 47849/week @ 2025-07-26 43828/week @ 2025-08-02 48447/week @ 2025-08-09 56032/week @ 2025-08-16 53455/week @ 2025-08-23 50240/week @ 2025-08-30 48623/week @ 2025-09-06 60265/week @ 2025-09-13 61143/week @ 2025-09-20 67586/week @ 2025-09-27 65409/week @ 2025-10-04 47904/week @ 2025-10-11

252,032 downloads per month
Used in 56 crates (3 directly)

MIT/Apache

33KB
810 lines

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

~195–610KB
~14K SLoC