Decision Workspace
actix-csrf-middleware vs elif-security vs actix-web-csp
Side-by-side comparison of Rust crates
49
actix-csrf-middleware
growingv0.9.0
CSRF protection middleware for Actix Web applications. Supports double submit cookie and synchronizer token patterns (with actix-session) out of the box. Flexible, easy to configure, and includes test coverage for common attacks and edge cases.
49
elif-security
growingv0.2.2
Security middleware and utilities for the elif.rs web framework
38
actix-web-csp
growingv0.1.0
High-performance Content Security Policy middleware for Actix Web
Core Metrics
| actix-csrf-middleware | elif-security | actix-web-csp | |
|---|---|---|---|
| Health Score | 49 | 49 | 38 |
| Total Downloads | 1.9K | 1.4K | 500 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 11 | 4 | 1 |
| Last Updated | 32d ago | 420d ago | 421d ago |
| Age | 1y 1m | 1y 1m | 1y 1m |
Health Breakdown
actix-csrf-middleware
Maintenance
17
Quality
10
Community
3
Popularity
4
Documentation
15
elif-security
Maintenance
13
Quality
12
Community
7
Popularity
4
Documentation
13
actix-web-csp
Maintenance
2
Quality
14
Community
6
Popularity
3
Documentation
13
Technical Details
| actix-csrf-middleware | elif-security | actix-web-csp | |
|---|---|---|---|
| Version | 0.9.0 | 0.2.2 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 22 | 17 | 26 |
| Crate Size | 65KB | 30KB | 65KB |
| Features | 1 | 0 | 6 |
| Yanked % | 9.1% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.88.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •actix-csrf-middleware leads with a health score of 49/100, but none of the options score above 80.
- •⚠ elif-security, actix-web-csp have not been updated in over a year.