Decision Workspace
dyn-dyn vs downcast-rs vs trait-cast-macros
Side-by-side comparison of Rust crates
43
dyn-dyn
growingv0.2.0
Flexible trait object downcasting using ptr_metadata
65
downcast-rs
growingv2.0.2
Trait object downcasting support using only safe Rust. It supports type parameters, associated types, and type constraints.
52
trait-cast-macros
growingv0.4.0
Proc-macro implementation for the 'trait-cast' crate.
Core Metrics
| dyn-dyn | downcast-rs | trait-cast-macros | |
|---|---|---|---|
| Health Score | 43 | 65 | 52 |
| Total Downloads | 8.1K | 102.2M | 5.2K |
| 30d Downloads | 29 | 7.2M | 64 |
| Dependents | 0 | 4.4K | 8 |
| Releases | 6 | 15 | 8 |
| Last Updated | 610d ago | 207d ago | 107d ago |
| Age | 3y 7m | 10y 3m | 1y 3m |
Health Breakdown
dyn-dyn
Maintenance
5
Quality
17
Community
6
Popularity
5
Documentation
10
downcast-rs
Maintenance
8
Quality
23
Community
14
Popularity
8
Documentation
12
trait-cast-macros
Maintenance
13
Quality
14
Community
11
Popularity
4
Documentation
10
Technical Details
| dyn-dyn | downcast-rs | trait-cast-macros | |
|---|---|---|---|
| Version | 0.2.0 | 2.0.2 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 0 | 7 |
| Crate Size | 20KB | 13KB | 10KB |
| Features | 4 | 3 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.56 | — |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •downcast-rs leads with a health score of 65/100, but none of the options score above 80.
- •downcast-rs is depended on by 4.4K crates — strongest ecosystem trust.
- •⚠ dyn-dyn has not been updated in over a year.
- •dyn-dyn, trait-cast-macros are pre-1.0 — API may change.