Decision Workspace
const_power_of_two vs downcast-rs vs generic-upper-bound
Side-by-side comparison of Rust crates
44
const_power_of_two
growingv1.0.0
A crate for working with constant generics that are powers of two.
62
downcast-rs
growingv2.0.2
Trait object downcasting support using only safe Rust. It supports type parameters, associated types, and type constraints.
58
generic-upper-bound
growingv3.1.2
Stable workaround for internal uses of generic-const-exprs
Core Metrics
| const_power_of_two | downcast-rs | generic-upper-bound | |
|---|---|---|---|
| Health Score | 44 | 62 | 58 |
| Total Downloads | 4.4K | 179.3M | 5.0K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 5.1K | 19 |
| Releases | 3 | 15 | 11 |
| Last Updated | 790d ago | 403d ago | 171d ago |
| Age | 2y 2m | 10y 10m | 1y 4m |
Health Breakdown
const_power_of_two
Maintenance
5
Quality
19
Community
6
Popularity
4
Documentation
10
downcast-rs
Maintenance
5
Quality
23
Community
14
Popularity
8
Documentation
12
generic-upper-bound
Maintenance
11
Quality
19
Community
9
Popularity
4
Documentation
15
Technical Details
| const_power_of_two | downcast-rs | generic-upper-bound | |
|---|---|---|---|
| Version | 1.0.0 | 2.0.2 | 3.1.2 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 4 | 0 | 1 |
| Crate Size | 9KB | 13KB | 6KB |
| Features | 0 | 3 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.56 | 1.78 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •downcast-rs leads with a health score of 62/100, but none of the options score above 80.
- •downcast-rs is depended on by 5.1K crates — strongest ecosystem trust.
- •⚠ const_power_of_two, downcast-rs have not been updated in over a year.