Decision Workspace
lib2fas vs totp-rs vs rust-otp
Side-by-side comparison of Rust crates
43
lib2fas
growingv0.1.2
Unofficial implementation of 2fas for Rust (as a library).
64
totp-rs
stablev5.7.1
RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
59
rust-otp
stablev3.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.
Core Metrics
| lib2fas | totp-rs | rust-otp | |
|---|---|---|---|
| Health Score | 43 | 64 | 59 |
| Total Downloads | 5.1K | 6.3M | 9.8K |
| 30d Downloads | 0 | 756.5K | 0 |
| Dependents | 0 | 1.3K | 1 |
| Releases | 7 | 49 | 3 |
| Last Updated | 497d ago | 77d ago | 43d ago |
| Age | 1y 4m | 6y 1m | 2y 5m |
Health Breakdown
lib2fas
Maintenance
11
Quality
13
Community
5
Popularity
4
Documentation
10
totp-rs
Maintenance
15
Quality
15
Community
14
Popularity
8
Documentation
12
rust-otp
Maintenance
14
Quality
21
Community
7
Popularity
5
Documentation
12
Technical Details
| lib2fas | totp-rs | rust-otp | |
|---|---|---|---|
| Version | 0.1.2 | 5.7.1 | 3.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 8 | 11 | 4 |
| Crate Size | 25KB | 28KB | 10KB |
| Features | 0 | 6 | 2 |
| Yanked % | 0.0% | 49.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.66 | 1.70 |
| 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.
- •⚠ lib2fas has not been updated in over a year.
- •lib2fas is pre-1.0 — API may change.