Decision Workspace
as-dyn-trait vs cast_trait_object vs trait-cast-macros
Side-by-side comparison of Rust crates
40
as-dyn-trait
growingv0.2.0
An attribute macro that generates methods for retrieving supertraits from trait-objects (upcasting).
48
cast_trait_object
growingv0.1.4
Cast between trait objects using only safe Rust.
47
trait-cast-macros
growingv0.4.0
Proc-macro implementation for the 'trait-cast' crate.
Core Metrics
| as-dyn-trait | cast_trait_object | trait-cast-macros | |
|---|---|---|---|
| Health Score | 40 | 48 | 47 |
| Total Downloads | 376.7K | 18.7K | 5.3K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2 | 35 | 8 |
| Releases | 2 | 5 | 8 |
| Last Updated | 2402d ago | 668d ago | 303d ago |
| Age | 6y 7m | 6y 1m | 1y 9m |
Health Breakdown
as-dyn-trait
Maintenance
3
Quality
15
Community
6
Popularity
7
Documentation
9
cast_trait_object
Maintenance
3
Quality
18
Community
10
Popularity
5
Documentation
12
trait-cast-macros
Maintenance
8
Quality
14
Community
11
Popularity
4
Documentation
10
Technical Details
| as-dyn-trait | cast_trait_object | trait-cast-macros | |
|---|---|---|---|
| Version | 0.2.0 | 0.1.4 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Unlicense | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 1 | 7 |
| Crate Size | 8KB | 19KB | 10KB |
| Features | 0 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2018 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •cast_trait_object leads with a health score of 48/100, but none of the options score above 80.
- •as-dyn-trait has the most downloads (376.7K), suggesting wider adoption.
- •⚠ as-dyn-trait, cast_trait_object have not been updated in over a year.