Decision Workspace
arbitrary-type vs const-secret vs const-gen
Side-by-side comparison of Rust crates
45
arbitrary-type
experimentalv0.1.0
turn an arbitrary compile-time byte sequence into a distinct, zero-sized type, identified by its const SHA-256 digest.
38
const-secret
experimentalv0.1.0
A `no_std` crate for compile-time encrypted secrets.
63
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| arbitrary-type | const-secret | const-gen | |
|---|---|---|---|
| Health Score | 45 | 38 | 63 |
| Total Downloads | 13 | 1.8K | 439.9K |
| 30d Downloads | 0 | 0 | 21.8K |
| Dependents | 0 | 0 | 36 |
| Releases | 1 | 1 | 45 |
| Last Updated | 35d ago | 145d ago | 145d ago |
| Age | 1m | 4m | 5y 2m |
Health Breakdown
arbitrary-type
Maintenance
11
Quality
15
Community
6
Popularity
1
Documentation
12
const-secret
Maintenance
6
Quality
12
Community
6
Popularity
4
Documentation
10
const-gen
Maintenance
12
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| arbitrary-type | const-secret | const-gen | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 1.6.9 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 OR MPL-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 3 | 2 |
| Crate Size | 14KB | 1.6MB | 11KB |
| Features | 0 | 0 | 5 |
| Yanked % | 0.0% | 0.0% | 2.2% |
| Edition | 2024 | 2024 | 2018 |
| MSRV | 1.85 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const-gen leads with a health score of 63/100, but none of the options score above 80.
- •arbitrary-type, const-secret are pre-1.0 — API may change.