Decision Workspace
totp-lite vs totp-rs vs roka-totp
Side-by-side comparison of Rust crates
49
totp-lite
growingv2.0.1
A simple, correct TOTP library.
66
totp-rs
stablev6.0.0
RFC-compliant TOTP implementation with ease of use as a goal and additional QoL features.
47
roka-totp
experimentalv0.1.0
Zero-dependency TOTP / HOTP for Rust — RFC 4226 / 6238, std-only, no unsafe.
Core Metrics
| totp-lite | totp-rs | roka-totp | |
|---|---|---|---|
| Health Score | 49 | 66 | 47 |
| Total Downloads | 1.9M | 11.1M | 47 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1.1K | 1.9K | 0 |
| Releases | 7 | 51 | 2 |
| Last Updated | 1076d ago | 64d ago | 141d ago |
| Age | 6y 1m | 6y 6m | 4m |
Health Breakdown
totp-lite
Maintenance
5
Quality
15
Community
13
Popularity
7
Documentation
9
totp-rs
Maintenance
15
Quality
16
Community
15
Popularity
8
Documentation
12
roka-totp
Maintenance
10
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| totp-lite | totp-rs | roka-totp | |
|---|---|---|---|
| Version | 2.0.1 | 6.0.0 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 6 | 12 | 1 |
| Crate Size | 9KB | 50KB | 22KB |
| Features | 0 | 10 | 0 |
| Yanked % | 14.3% | 47.1% | 0.0% |
| Edition | 2018 | 2024 | 2024 |
| MSRV | — | 1.88 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •totp-rs leads with a health score of 66/100, but none of the options score above 80.
- •totp-rs is depended on by 1.9K crates — strongest ecosystem trust.
- •⚠ totp-lite has not been updated in over a year.
- •roka-totp is pre-1.0 — API may change.