Decision Workspace
diplomatic-bag vs sync-ptr vs phantom-type
Side-by-side comparison of Rust crates
36
diplomatic-bag
growingv0.3.1
A wrapper type that allows you to send `!Send` types to different threads.
57
sync-ptr
growingv0.2.2
Sync & Send wrappers for raw pointer's and function pointers in rust
55
phantom-type
growingv0.5.2
A `PhantomData` analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with `PhantomData`.
Core Metrics
| diplomatic-bag | sync-ptr | phantom-type | |
|---|---|---|---|
| Health Score | 36 | 57 | 55 |
| Total Downloads | 11.6K | 270.3K | 425.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 15 | 210 |
| Releases | 5 | 8 | 10 |
| Last Updated | 1606d ago | 69d ago | 760d ago |
| Age | 5y 7m | 2y | 6y |
Health Breakdown
diplomatic-bag
Maintenance
3
Quality
14
Community
5
Popularity
5
Documentation
9
sync-ptr
Maintenance
14
Quality
17
Community
8
Popularity
6
Documentation
12
phantom-type
Maintenance
4
Quality
17
Community
12
Popularity
7
Documentation
15
Technical Details
| diplomatic-bag | sync-ptr | phantom-type | |
|---|---|---|---|
| Version | 0.3.1 | 0.2.2 | 0.5.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 6 | 0 | 2 |
| Crate Size | 14KB | 11KB | 2KB |
| Features | 0 | 1 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.65.0 | 1.70 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •sync-ptr leads with a health score of 57/100, but none of the options score above 80.
- •phantom-type has the most downloads (425.9K), suggesting wider adoption.
- •phantom-type is depended on by 210 crates — strongest ecosystem trust.
- •⚠ diplomatic-bag, phantom-type have not been updated in over a year.