Decision Workspace
portgraph vs petgraph vs safegraph
Side-by-side comparison of Rust crates
63
portgraph
growingv0.16.2
Data structure library for directed graphs with first-level ports.
63
petgraph
growingv0.8.3
Graph data structure library. Provides graph types and graph algorithms.
59
safegraph
experimentalv0.3.0
A type-safe, scope-aware graph library that leverages Rust's type system to prevent common graph-related bugs at compile time
Core Metrics
| portgraph | petgraph | safegraph | |
|---|---|---|---|
| Health Score | 63 | 63 | 59 |
| Total Downloads | 555.8K | 546.4M | 1.7K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 286 | 22.3K | 12 |
| Releases | 34 | 78 | 3 |
| Last Updated | 32d ago | 374d ago | 8d ago |
| Age | 3y 7m | 11y 9m | 3m |
Health Breakdown
portgraph
Maintenance
18
Quality
10
Community
13
Popularity
7
Documentation
15
petgraph
Maintenance
8
Quality
13
Community
19
Popularity
8
Documentation
15
safegraph
Maintenance
18
Quality
13
Community
9
Popularity
4
Documentation
15
Technical Details
| portgraph | petgraph | safegraph | |
|---|---|---|---|
| Version | 0.16.2 | 0.8.3 | 0.3.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 18 | 16 | 9 |
| Crate Size | 141KB | 808KB | 184KB |
| Features | 4 | 12 | 2 |
| Yanked % | 8.8% | 1.3% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.75 | 1.64 | 1.56 |
| Owners | 2 | 3 (team) | 1 |
Links
Quick Verdict
- •portgraph leads with a health score of 63/100, but none of the options score above 80.
- •petgraph has the most downloads (546.4M), suggesting wider adoption.
- •petgraph is depended on by 22.3K crates — strongest ecosystem trust.
- •⚠ petgraph has not been updated in over a year.