Decision Workspace
libr2fa vs totp-rs vs roka-totp
Side-by-side comparison of Rust crates
41
libr2fa
growingv0.1.3
rust implementation for HTOP, TOTP and steam guard tow-factor-authentication
64
totp-rs
stablev5.7.1
RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
51
roka-totp
experimentalv0.1.0
Zero-dependency TOTP / HOTP for Rust — RFC 4226 / 6238, std-only, no unsafe.
Core Metrics
| libr2fa | totp-rs | roka-totp | |
|---|---|---|---|
| Health Score | 41 | 64 | 51 |
| Total Downloads | 5.1K | 6.3M | 28 |
| 30d Downloads | 0 | 756.5K | 0 |
| Dependents | 0 | 1.3K | 0 |
| Releases | 4 | 49 | 2 |
| Last Updated | 1085d ago | 77d ago | 4d ago |
| Age | 3y 1m | 6y 1m | 4d |
Health Breakdown
libr2fa
Maintenance
4
Quality
15
Community
5
Popularity
4
Documentation
13
totp-rs
Maintenance
15
Quality
15
Community
14
Popularity
8
Documentation
12
roka-totp
Maintenance
14
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| libr2fa | totp-rs | roka-totp | |
|---|---|---|---|
| Version | 0.1.3 | 5.7.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 18 | 11 | 1 |
| Crate Size | 21KB | 28KB | 22KB |
| Features | 6 | 6 | 0 |
| Yanked % | 0.0% | 49.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.66 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •totp-rs leads with a health score of 64/100, but none of the options score above 80.
- •totp-rs is depended on by 1.3K crates — strongest ecosystem trust.
- •⚠ libr2fa has not been updated in over a year.
- •libr2fa, roka-totp are pre-1.0 — API may change.