9 unstable releases
| 0.5.2 | Sep 25, 2025 |
|---|---|
| 0.5.1 | Feb 2, 2025 |
| 0.5.0 | Dec 25, 2020 |
| 0.4.0 | Oct 17, 2020 |
| 0.1.0 | Nov 12, 2018 |
#1513 in Database interfaces
133,267 downloads per month
Used in 31 crates
(20 directly)
305KB
6.5K
SLoC
Rust-Postgres
PostgreSQL support for Rust.
postgres 
A native, synchronous PostgreSQL client.
tokio-postgres 
A native, asynchronous PostgreSQL client.
postgres-types 
Conversions between Rust and Postgres types.
postgres-native-tls 
TLS support for postgres and tokio-postgres via native-tls.
postgres-openssl 
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:
- Install
dockeranddocker-compose.- On ubuntu:
sudo apt install docker.io docker-compose.
- On ubuntu:
- Make sure your user has permissions for docker.
- On ubuntu:
sudo usermod -aG docker $USER
- On ubuntu:
- Change to top-level directory of
rust-postgresrepo. - Run
docker-compose up -d. - Run
cargo test. - Run
docker-compose stop.
Dependencies
~8–21MB
~259K SLoC