Decision Workspace
const-secret vs const-gen vs const-gen-derive
Side-by-side comparison of Rust crates
43
const-secret
experimentalv0.1.0
A `no_std` crate for compile-time encrypted secrets.
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
63
const-gen-derive
stablev1.1.7
A derive macro for the const-gen crate.
Core Metrics
| const-secret | const-gen | const-gen-derive | |
|---|---|---|---|
| Health Score | 43 | 68 | 63 |
| Total Downloads | 1.6K | 321.8K | 284.6K |
| 30d Downloads | 1.3K | 26.8K | 26.5K |
| Dependents | 0 | 34 | 45 |
| Releases | 1 | 45 | 16 |
| Last Updated | 37d ago | 37d ago | 37d ago |
| Age | 1m | 4y 11m | 4y 11m |
Health Breakdown
const-secret
Maintenance
11
Quality
12
Community
6
Popularity
4
Documentation
10
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
const-gen-derive
Maintenance
16
Quality
17
Community
11
Popularity
7
Documentation
12
Technical Details
| const-secret | const-gen | const-gen-derive | |
|---|---|---|---|
| Version | 0.1.0 | 1.6.9 | 1.1.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 2 | 3 |
| Crate Size | 1.6MB | 11KB | 4KB |
| Features | 0 | 5 | 0 |
| Yanked % | 0.0% | 2.2% | 6.3% |
| Edition | 2024 | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •const-gen leads with a health score of 68/100, but none of the options score above 80.
- •const-secret is pre-1.0 — API may change.