Decision Workspace
diplomatic-bag vs phantom-type vs sync-ptr
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.
54
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`.
54
sync-ptr
growingv0.2.1
Sync & Send wrappers for raw pointer's and function pointers in rust
Core Metrics
| diplomatic-bag | phantom-type | sync-ptr | |
|---|---|---|---|
| Health Score | 36 | 54 | 54 |
| Total Downloads | 10.6K | 229.4K | 159.7K |
| 30d Downloads | 74 | 15.4K | 14.0K |
| Dependents | 0 | 203 | 12 |
| Releases | 5 | 10 | 7 |
| Last Updated | 1410d ago | 564d ago | 160d ago |
| Age | 5y 1m | 5y 6m | 1y 6m |
Health Breakdown
diplomatic-bag
Maintenance
3
Quality
14
Community
5
Popularity
5
Documentation
9
phantom-type
Maintenance
4
Quality
17
Community
12
Popularity
6
Documentation
15
sync-ptr
Maintenance
11
Quality
17
Community
8
Popularity
6
Documentation
12
Technical Details
| diplomatic-bag | phantom-type | sync-ptr | |
|---|---|---|---|
| Version | 0.3.1 | 0.5.2 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 6 | 2 | 0 |
| Crate Size | 14KB | 2KB | 11KB |
| Features | 0 | 2 | 1 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2021 | 2021 |
| MSRV | — | 1.70 | 1.65.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •phantom-type leads with a health score of 54/100, but none of the options score above 80.
- •phantom-type is depended on by 203 crates — strongest ecosystem trust.
- •⚠ diplomatic-bag, phantom-type have not been updated in over a year.