# rust-postgres/rust-postgres

Native PostgreSQL driver for the Rust programming language

Repository: https://github.com/rust-postgres/rust-postgres
Canonical: https://ross.abutalabs.com/products/rust-postgres
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-07-27T10:57:11+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 88, longevity 100
- inputs: {"age_days": 4789, "days_push": 37, "days_rel": 82, "gap_med": 0.0, "n_releases_24m": 35}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3988, forks 574 (observed 2026-08-28T04:08:31.774650+00:00)

## What it is
A native PostgreSQL client library for Rust, offering both synchronous (postgres) and asynchronous (tokio-postgres) drivers. It includes supporting crates for Rust-Postgres type conversions and TLS integration via native-tls or openssl.

## Use cases
- connect to postgres from rust
- async postgresql queries with tokio
- run sql statements in a rust application
- tls-encrypted postgres connections in rust
- map postgres types to rust types

## When to choose
- you need a native, dependency-light PostgreSQL driver in Rust
- you want async database access integrated with the Tokio ecosystem
- you need fine-grained control over queries without a full ORM

## When to avoid
- you want an ORM with migrations and model relations (consider Diesel or SeaORM)
- you need a database-agnostic driver that works across multiple databases
- your project uses a different language than Rust

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: rust, cross-platform
- tags: postgresql, async, tokio, tls

## Member repositories
- rust-postgres/rust-postgres (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:31.774650+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:24:13.897187+00:00, confidence not recorded.
  - readme: https://github.com/rust-postgres/rust-postgres (fetched 2026-08-28T04:08:31.774650+00:00, sha e4e7c2898f07)
- Data as of 2026-08-30T08:39:29.467469+00:00.
