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.
68
totp-rs
stablev5.7.2
RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
48
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 | 68 | 48 |
| Total Downloads | 1.4M | 8.1M | 37 |
| 30d Downloads | 84.7K | 568.8K | 0 |
| Dependents | 786 | 1.5K | 0 |
| Releases | 7 | 50 | 2 |
| Last Updated | 988d ago | 20d ago | 53d ago |
| Age | 5y 10m | 6y 3m | 1m |
Health Breakdown
totp-lite
Maintenance
5
Quality
15
Community
13
Popularity
7
Documentation
9
totp-rs
Maintenance
18
Quality
15
Community
15
Popularity
8
Documentation
12
roka-totp
Maintenance
11
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| totp-lite | totp-rs | roka-totp | |
|---|---|---|---|
| Version | 2.0.1 | 5.7.2 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 6 | 11 | 1 |
| Crate Size | 9KB | 28KB | 22KB |
| Features | 0 | 6 | 0 |
| Yanked % | 14.3% | 48.0% | 0.0% |
| Edition | 2018 | 2021 | 2024 |
| MSRV | — | 1.66 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •totp-rs leads with a health score of 68/100, but none of the options score above 80.
- •totp-rs is depended on by 1.5K crates — strongest ecosystem trust.
- •⚠ totp-lite has not been updated in over a year.
- •roka-totp is pre-1.0 — API may change.