Decision Workspace
as-dyn-trait vs trait-cast-macros vs trait-cast
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).
52
trait-cast-macros
growingv0.4.0
Proc-macro implementation for the 'trait-cast' crate.
52
trait-cast
growingv0.4.0
Get your own Any with support for casting to trait objects.
Core Metrics
| as-dyn-trait | trait-cast-macros | trait-cast | |
|---|---|---|---|
| Health Score | 40 | 52 | 52 |
| Total Downloads | 333.7K | 5.2K | 5.1K |
| 30d Downloads | 11.1K | 64 | 10 |
| Dependents | 2 | 8 | 0 |
| Releases | 2 | 8 | 8 |
| Last Updated | 2206d ago | 107d ago | 107d ago |
| Age | 6y | 1y 3m | 1y 3m |
Health Breakdown
as-dyn-trait
Maintenance
3
Quality
15
Community
6
Popularity
7
Documentation
9
trait-cast-macros
Maintenance
13
Quality
14
Community
11
Popularity
4
Documentation
10
trait-cast
Maintenance
13
Quality
17
Community
8
Popularity
4
Documentation
10
Technical Details
| as-dyn-trait | trait-cast-macros | trait-cast | |
|---|---|---|---|
| Version | 0.2.0 | 0.4.0 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Unlicense | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 7 | 1 |
| Crate Size | 8KB | 10KB | 23KB |
| Features | 0 | 0 | 4 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 2 | 2 |
Links
Quick Verdict
- •trait-cast-macros leads with a health score of 52/100, but none of the options score above 80.
- •as-dyn-trait has the most downloads (333.7K), suggesting wider adoption.
- •⚠ as-dyn-trait has not been updated in over a year.