Decision Workspace
pg-embed vs postgresql_embedded vs postgresql_commands
Side-by-side comparison of Rust crates
64
pg-embed
stablev1.0.0
Run a Postgresql database locally on Linux, MacOS or Windows as part of another Rust application or test.
63
postgresql_embedded
growingv0.20.2
Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be bundled with your application, or downloaded on demand.
63
postgresql_commands
growingv0.20.2
PostgreSQL commands for interacting with a PostgreSQL server.
Core Metrics
| pg-embed | postgresql_embedded | postgresql_commands | |
|---|---|---|---|
| Health Score | 64 | 63 | 63 |
| Total Downloads | 184.1K | 1.3M | 1.3M |
| 30d Downloads | 8.0K | 271.1K | 283.0K |
| Dependents | 64 | 344 | 115 |
| Releases | 28 | 62 | 42 |
| Last Updated | 31d ago | 34d ago | 34d ago |
| Age | 5y | 2y 1m | 1y 11m |
Health Breakdown
pg-embed
Maintenance
16
Quality
16
Community
11
Popularity
6
Documentation
15
postgresql_embedded
Maintenance
17
Quality
15
Community
12
Popularity
7
Documentation
12
postgresql_commands
Maintenance
17
Quality
16
Community
11
Popularity
7
Documentation
12
Technical Details
| pg-embed | postgresql_embedded | postgresql_commands | |
|---|---|---|---|
| Version | 1.0.0 | 0.20.2 | 0.20.2 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT/Apache-2.0 | (Apache-2.0 OR MIT) AND PostgreSQL | (Apache-2.0 OR MIT) AND PostgreSQL |
| Dependencies | 13 | 19 | 5 |
| Crate Size | 272KB | 43KB | 52KB |
| Features | 3 | 9 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.88 | 1.92.0 | 1.92.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •pg-embed leads with a health score of 64/100, but none of the options score above 80.
- •postgresql_commands has the most downloads (1.3M), suggesting wider adoption.
- •postgresql_embedded is depended on by 344 crates — strongest ecosystem trust.
- •postgresql_embedded, postgresql_commands are pre-1.0 — API may change.