Decision Workspace
extension-trait vs downcast-rs vs extern-trait
Side-by-side comparison of Rust crates
57
extension-trait
growingv1.0.2
Macro to declare extension traits
63
downcast-rs
growingv2.0.2
Trait object downcasting support using only safe Rust. It supports type parameters, associated types, and type constraints.
58
extern-trait
growingv0.5.0
Opaque types for traits using static dispatch
Core Metrics
| extension-trait | downcast-rs | extern-trait | |
|---|---|---|---|
| Health Score | 57 | 63 | 58 |
| Total Downloads | 932.0K | 133.8M | 72.4K |
| 30d Downloads | 170.6K | 5.7M | 8.1K |
| Dependents | 358 | 4.7K | 122 |
| Releases | 11 | 15 | 9 |
| Last Updated | 1211d ago | 315d ago | 6d ago |
| Age | 8y 8m | 10y 7m | 1y 2m |
Health Breakdown
extension-trait
Maintenance
5
Quality
20
Community
12
Popularity
7
Documentation
13
downcast-rs
Maintenance
6
Quality
23
Community
14
Popularity
8
Documentation
12
extern-trait
Maintenance
19
Quality
11
Community
12
Popularity
6
Documentation
10
Technical Details
| extension-trait | downcast-rs | extern-trait | |
|---|---|---|---|
| Version | 1.0.2 | 2.0.2 | 0.5.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 0 | 5 |
| Crate Size | 8KB | 13KB | 24KB |
| Features | 0 | 3 | 1 |
| Yanked % | 0.0% | 0.0% | 11.1% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.56 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •downcast-rs leads with a health score of 63/100, but none of the options score above 80.
- •downcast-rs is depended on by 4.7K crates — strongest ecosystem trust.
- •⚠ extension-trait has not been updated in over a year.
- •extern-trait is pre-1.0 — API may change.