#sql #postgresql

zero-postgres

A high-performance PostgreSQL client

13 releases (7 breaking)

Uses new Rust 2024

new 0.8.0 Jan 21, 2026
0.7.0 Jan 11, 2026
0.6.0 Jan 10, 2026
0.5.0 Jan 10, 2026
0.1.0 Dec 25, 2025

#487 in Database interfaces

Download history 208/week @ 2025-12-23 14/week @ 2025-12-30

222 downloads per month

MIT license

435KB
9K SLoC

zero-postgres

A high-performance PostgreSQL client library for Rust.

API Reference (docs.rs) | User Guide

Python binding: pyro-postgres.

Feature Flags

  • sync (default) - Synchronous API
  • tokio (default) - Asynchronous API using tokio
  • sync-tls - TLS support for Synchronous API (experimental)
  • tokio-tls - TLS support for Asynchronous API (experimental)

Benchmark

Inserting 10,000 rows using prepared statements (average of 10 iterations):

Library Avg Time (ms)
zero-postgres (sync) 250.35
zero-postgres (async) 269.32
tokio-postgres 398.90
postgres (sync) 422.61

Run benchmarks: cargo run --release --example bench_zero_sync

More tests and proper benchmarks will be added via pyro-postgres.

Status

  • todo: cleanup, more tests, more data conversion

Dependencies

~12–30MB
~327K SLoC