Decision Workspace
modinverse vs num-modular vs num-prime
Side-by-side comparison of Rust crates
56
modinverse
growingv0.2.0
Small library for finding the modular multiplicative inverses.
66
num-modular
growingv0.6.4
Implementation of efficient integer division and modular arithmetic operations with generic number types. Supports various backends including num-bigint, etc..
59
num-prime
growingv0.5.0
Generic and optimized primality test, factorization and various number theoretic functions with arbitrary precision based on `num`.
Core Metrics
| modinverse | num-modular | num-prime | |
|---|---|---|---|
| Health Score | 56 | 66 | 59 |
| Total Downloads | 157.9K | 24.8M | 5.3M |
| 30d Downloads | 3.0K | 1.5M | 225.1K |
| Dependents | 95 | 190 | 249 |
| Releases | 3 | 20 | 19 |
| Last Updated | 38d ago | 30d ago | 140d ago |
| Age | 9y 5m | 4y 5m | 4y 6m |
Health Breakdown
modinverse
Maintenance
13
Quality
16
Community
11
Popularity
6
Documentation
10
num-modular
Maintenance
16
Quality
16
Community
12
Popularity
8
Documentation
14
num-prime
Maintenance
11
Quality
11
Community
15
Popularity
8
Documentation
14
Technical Details
| modinverse | num-modular | num-prime | |
|---|---|---|---|
| Version | 0.2.0 | 0.6.4 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Unlicense | Apache-2.0 | Apache-2.0 |
| Dependencies | 4 | 4 | 8 |
| Crate Size | 20KB | 47KB | 152KB |
| Features | 2 | 3 | 3 |
| Yanked % | 0.0% | 0.0% | 5.3% |
| Edition | 2021 | 2018 | 2018 |
| MSRV | — | 1.65 | 1.70 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •num-modular leads with a health score of 66/100, but none of the options score above 80.
- •num-prime is depended on by 249 crates — strongest ecosystem trust.