Decision Workspace
rust-mp vs num-modular vs discrete-logarithm
Side-by-side comparison of Rust crates
49
rust-mp
experimentalv0.3.0
Multiprecision integer arithmetic implemented from the literature: Knuth Algorithm D division, a public Montgomery domain, Karatsuba, Toom-Cook, and exact NTT multiplication, number theory through Baillie-PSW and exact AKS, GF(2^m), polynomials over Z and F_p with factorization, and integral LLL.
67
num-modular
growingv0.6.6
Implementation of efficient integer division and modular arithmetic operations with generic number types. Supports various backends including num-bigint, etc..
66
discrete-logarithm
stablev2.0.0
Fast discrete logarithm solver
Core Metrics
| rust-mp | num-modular | discrete-logarithm | |
|---|---|---|---|
| Health Score | 49 | 67 | 66 |
| Total Downloads | 114 | 37.0M | 12.8K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 3 | 226 | 19 |
| Releases | 4 | 22 | 5 |
| Last Updated | 6d ago | 8d ago | 13d ago |
| Age | 1m | 4y 8m | 3y 2m |
Health Breakdown
rust-mp
Maintenance
13
Quality
14
Community
8
Popularity
2
Documentation
12
num-modular
Maintenance
17
Quality
16
Community
12
Popularity
8
Documentation
14
discrete-logarithm
Maintenance
18
Quality
21
Community
10
Popularity
5
Documentation
12
Technical Details
| rust-mp | num-modular | discrete-logarithm | |
|---|---|---|---|
| Version | 0.3.0 | 0.6.6 | 2.0.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | BSD-2-Clause | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 0 | 4 | 5 |
| Crate Size | 1.2MB | 48KB | 88KB |
| Features | 1 | 3 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2024 |
| MSRV | 1.87 | 1.65 | 1.86 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •num-modular leads with a health score of 67/100, but none of the options score above 80.
- •num-modular is depended on by 226 crates — strongest ecosystem trust.
- •rust-mp, num-modular are pre-1.0 — API may change.