Decision Workspace
actix-csrf-middleware vs elif-security vs actix-web-csp
Side-by-side comparison of Rust crates
40
actix-csrf-middleware
experimentalv0.5.4
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.
50
elif-security
experimentalv0.2.2
Security middleware and utilities for the elif.rs web framework
39
actix-web-csp
experimentalv0.1.0
High-performance Content Security Policy middleware for Actix Web
Core Metrics
| actix-csrf-middleware | elif-security | actix-web-csp | |
|---|---|---|---|
| Health Score | 40 | 50 | 39 |
| Total Downloads | 1.6K | 1.4K | 476 |
| 30d Downloads | 8 | 6 | 3 |
| Dependents | 0 | 1 | 0 |
| Releases | 5 | 4 | 1 |
| Last Updated | 167d ago | 224d ago | 225d ago |
| Age | 6m | 7m | 7m |
Health Breakdown
actix-csrf-middleware
Maintenance
11
Quality
7
Community
3
Popularity
4
Documentation
15
elif-security
Maintenance
15
Quality
11
Community
7
Popularity
4
Documentation
13
actix-web-csp
Maintenance
4
Quality
13
Community
6
Popularity
3
Documentation
13
Technical Details
| actix-csrf-middleware | elif-security | actix-web-csp | |
|---|---|---|---|
| Version | 0.5.4 | 0.2.2 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT | MIT | MIT |
| Dependencies | 21 | 17 | 26 |
| Crate Size | 52KB | 30KB | 65KB |
| Features | 1 | 0 | 6 |
| Yanked % | 20.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.70.0 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •elif-security leads with a health score of 50/100, but none of the options score above 80.
- •actix-csrf-middleware has the most downloads (1.6K), suggesting wider adoption.