Decision Workspace
rustc-hex vs hex-literal vs const-hex
Side-by-side comparison of Rust crates
59
rustc-hex
growingv2.1.0
rustc-serialize compatible hex conversion traits
75
hex-literal
stablev1.1.0
A macro for converting hexadecimal string literals to a byte array at compile time
74
const-hex
stablev1.18.1
Fast byte array to hex string conversion
Core Metrics
| rustc-hex | hex-literal | const-hex | |
|---|---|---|---|
| Health Score | 59 | 75 | 74 |
| Total Downloads | 34.0M | 49.3M | 30.2M |
| 30d Downloads | 2.1M | 3.2M | 3.2M |
| Dependents | 889 | 14.6K | 2.0K |
| Releases | 4 | 17 | 32 |
| Last Updated | 2268d ago | 49d ago | 25d ago |
| Age | 8y 10m | 8y 1m | 2y 11m |
Health Breakdown
rustc-hex
Maintenance
3
Quality
23
Community
16
Popularity
8
Documentation
9
hex-literal
Maintenance
14
Quality
20
Community
18
Popularity
8
Documentation
15
const-hex
Maintenance
17
Quality
19
Community
15
Popularity
8
Documentation
15
Technical Details
| rustc-hex | hex-literal | const-hex | |
|---|---|---|---|
| Version | 2.1.0 | 1.1.0 | 1.18.1 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT/Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 11 |
| Crate Size | 8KB | 9KB | 35KB |
| Features | 2 | 0 | 10 |
| Yanked % | 0.0% | 0.0% | 6.3% |
| Edition | 2018 | 2024 | 2021 |
| MSRV | — | 1.85 | 1.64 |
| Owners | 2 (team) | 2 (team) | 1 |
Links
Quick Verdict
- •hex-literal leads with a health score of 75/100, but none of the options score above 80.
- •hex-literal is depended on by 14.6K crates — strongest ecosystem trust.
- •⚠ rustc-hex has not been updated in over a year.