sfackler/r2d2
A generic connection pool for Rust observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4411
- days_rel: n/a
- days_push: 693
- n_releases_24m: 0
Adoption not part of the score
1656 stars · 88 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
r2d2 is a generic connection pool library for Rust that maintains a set of open connections for repeated use. It is backend-agnostic, with adaptor crates for PostgreSQL, Redis, MySQL, SQLite, and many other databases.
Use cases
- pool database connections in a rust web service
- avoid opening a new connection per request under high traffic
- manage postgres connection pool in rust
- reuse redis connections efficiently
- add connection pooling to diesel or rusqlite
- prevent resource exhaustion from too many open connections
When to choose
- you need a mature, widely-used connection pool in Rust
- your backend database has an existing r2d2 adaptor crate
- you want backend-agnostic pooling via the ManageConnection trait
When to avoid
- your database driver already includes built-in pooling (e.g. official mongodb driver)
- you need async connection pooling, where alternatives like deadpool or bb8 may fit better
Facets
library · maturity stable
database caching concurrency databases developer-tools backend rust cross-platform connection-pool rust-library database-pooling
2 sources
- readme: https://github.com/sfackler/r2d2 · fetched 2026-08-28 · 7b1ebce0afca
- registry_crates: https://crates.io/api/v1/crates/r2d2 · fetched 2026-08-29 · f70a306d5a16
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sfackler/r2d2 | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem