rustio rustio.net

cast_trait vs as_repr vs trait-cast-macros

Side-by-side comparison of Rust crates

Core Metrics

cast_traitas_reprtrait-cast-macros
Health Score405952
Total Downloads61.4K6.0K5.2K
30d Downloads4996064
Dependents2568
Releases358
Last Updated2889d ago83d ago107d ago
Age7y 11m5m1y 3m

Health Breakdown

cast_trait
Maintenance
3
Quality
16
Community
7
Popularity
6
Documentation
8
as_repr
Maintenance
13
Quality
18
Community
8
Popularity
5
Documentation
15
trait-cast-macros
Maintenance
13
Quality
14
Community
11
Popularity
4
Documentation
10

Technical Details

cast_traitas_reprtrait-cast-macros
Version0.1.21.3.00.4.0
Stable (≥1.0)✗ No✓ Yes✗ No
LicenseMITApache-2.0 OR BSL-1.0 OR MITMIT OR Apache-2.0
Dependencies007
Crate Size3KB8KB10KB
Features000
Yanked %0.0%0.0%0.0%
Edition20242024
MSRV1.85
Owners112

Quick Verdict

  • as_repr leads with a health score of 59/100, but none of the options score above 80.
  • cast_trait has the most downloads (61.4K), suggesting wider adoption.
  • ⚠ cast_trait has not been updated in over a year.
  • cast_trait, trait-cast-macros are pre-1.0 — API may change.