Decision Workspace
totp-rfc vs rust-otp vs roka-totp
Side-by-side comparison of Rust crates
48
totp-rfc
experimentalv0.1.2
Security-hardened, allocation-free no_std HOTP and TOTP for Rust with strict RFC 4226/6238 behavior
54
rust-otp
growingv3.0.0
A modern Rust library for performing the HMAC-based One-Time Password (HOTP) and Time-based One-Time Password (TOTP) algorithms with async support.
47
roka-totp
experimentalv0.1.0
Zero-dependency TOTP / HOTP for Rust — RFC 4226 / 6238, std-only, no unsafe.
Core Metrics
| totp-rfc | rust-otp | roka-totp | |
|---|---|---|---|
| Health Score | 48 | 54 | 47 |
| Total Downloads | 67 | 33.3K | 47 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 3 | 3 | 2 |
| Last Updated | 71d ago | 180d ago | 141d ago |
| Age | 2m | 2y 9m | 4m |
Health Breakdown
totp-rfc
Maintenance
10
Quality
15
Community
6
Popularity
2
Documentation
15
rust-otp
Maintenance
9
Quality
21
Community
7
Popularity
5
Documentation
12
roka-totp
Maintenance
10
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| totp-rfc | rust-otp | roka-totp | |
|---|---|---|---|
| Version | 0.1.2 | 3.0.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 6 | 4 | 1 |
| Crate Size | 42KB | 10KB | 22KB |
| Features | 2 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | 1.85 | 1.70 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •rust-otp leads with a health score of 54/100, but none of the options score above 80.
- •totp-rfc, roka-totp are pre-1.0 — API may change.