Decision Workspace
const-primes vs large-primes vs const-gen
Side-by-side comparison of Rust crates
53
const-primes
growingv0.10.5
Work with prime numbers in const contexts. Prime generation, primality testing, prime counting, and more.
43
large-primes
growingv0.5.1
Package for Large Prime Number Analysis
68
const-gen
stablev1.6.9
A crate for generating (relatively) complex compile-time constants in rust.
Core Metrics
| const-primes | large-primes | const-gen | |
|---|---|---|---|
| Health Score | 53 | 43 | 68 |
| Total Downloads | 515.6K | 7.9K | 321.8K |
| 30d Downloads | 33.2K | 23 | 25.5K |
| Dependents | 4 | 0 | 34 |
| Releases | 56 | 6 | 45 |
| Last Updated | 179d ago | 790d ago | 37d ago |
| Age | 2y 6m | 2y 2m | 4y 11m |
Health Breakdown
const-primes
Maintenance
11
Quality
12
Community
8
Popularity
7
Documentation
15
large-primes
Maintenance
10
Quality
14
Community
3
Popularity
5
Documentation
11
const-gen
Maintenance
17
Quality
22
Community
10
Popularity
7
Documentation
12
Technical Details
| const-primes | large-primes | const-gen | |
|---|---|---|---|
| Version | 0.10.5 | 0.5.1 | 1.6.9 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR Apache-2.0 | non-standard | MIT OR Apache-2.0 |
| Dependencies | 9 | 4 | 2 |
| Crate Size | 60KB | 12KB | 11KB |
| Features | 4 | 0 | 5 |
| Yanked % | 7.1% | 0.0% | 2.2% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.81.0 | — | — |
| 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-primes has the most downloads (515.6K), suggesting wider adoption.
- •⚠ large-primes has not been updated in over a year.
- •const-primes, large-primes are pre-1.0 — API may change.