Decision Workspace
csrf vs rocket_csrf_token vs csrf_guard
Side-by-side comparison of Rust crates
47
csrf
growingv0.5.0
CSRF protection primitives
40
rocket_csrf_token
growingv0.3.5
CSRF (Cross-Site Request Forgery) protection for Rocket web framework
40
csrf_guard
growingv0.4.0
Thread safe, generic, enterprise level csrf guard for all frameworks and runtimes
Core Metrics
| csrf | rocket_csrf_token | csrf_guard | |
|---|---|---|---|
| Health Score | 47 | 40 | 40 |
| Total Downloads | 94.6K | 7.8K | 4.8K |
| 30d Downloads | 2.5K | 63 | 6 |
| Dependents | 174 | 0 | 0 |
| Releases | 17 | 5 | 5 |
| Last Updated | 391d ago | 794d ago | 518d ago |
| Age | 9y 1m | 2y 5m | 1y 6m |
Health Breakdown
csrf
Maintenance
5
Quality
11
Community
12
Popularity
6
Documentation
13
rocket_csrf_token
Maintenance
4
Quality
14
Community
7
Popularity
5
Documentation
10
csrf_guard
Maintenance
10
Quality
10
Community
6
Popularity
4
Documentation
10
Technical Details
| csrf | rocket_csrf_token | csrf_guard | |
|---|---|---|---|
| Version | 0.5.0 | 0.3.5 | 0.4.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 11 | 4 | 1 |
| Crate Size | 14KB | 10KB | 5KB |
| Features | 1 | 0 | 0 |
| Yanked % | 5.9% | 0.0% | 20.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •csrf leads with a health score of 47/100, but none of the options score above 80.
- •csrf is depended on by 174 crates — strongest ecosystem trust.
- •⚠ csrf, rocket_csrf_token, csrf_guard have not been updated in over a year.