Decision Workspace
axum-csrf-sync-pattern vs axum-tower-sessions-csrf vs axum-helmet
Side-by-side comparison of Rust crates
38
axum-csrf-sync-pattern
growingv0.3.2
An axum layer and middleware, providing Cross Site Request Forgery protection by implementing the CSRF Synchronizer Token Pattern for same-site and cross-site API requests, as described by OWASP.
46
axum-tower-sessions-csrf
experimentalv0.1.1
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
54
axum-helmet
stablev1.0.1
HTTP security headers middleware core for axum web framework
Core Metrics
| axum-csrf-sync-pattern | axum-tower-sessions-csrf | axum-helmet | |
|---|---|---|---|
| Health Score | 38 | 46 | 54 |
| Total Downloads | 14.0K | 227 | 32.2K |
| 30d Downloads | 32 | 64 | 3.8K |
| Dependents | 0 | 0 | 40 |
| Releases | 10 | 2 | 6 |
| Last Updated | 721d ago | 106d ago | 19d ago |
| Age | 3y 4m | 3m | 2y 2m |
Health Breakdown
axum-csrf-sync-pattern
Maintenance
4
Quality
13
Community
6
Popularity
5
Documentation
10
axum-tower-sessions-csrf
Maintenance
12
Quality
15
Community
6
Popularity
3
Documentation
10
axum-helmet
Maintenance
15
Quality
14
Community
10
Popularity
5
Documentation
10
Technical Details
| axum-csrf-sync-pattern | axum-tower-sessions-csrf | axum-helmet | |
|---|---|---|---|
| Version | 0.3.2 | 0.1.1 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MPL-2.0 | MIT OR LGPL-3.0-or-later | MIT |
| Dependencies | 11 | 7 | 8 |
| Crate Size | 19KB | 15KB | 15KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •axum-helmet leads with a health score of 54/100, but none of the options score above 80.
- •⚠ axum-csrf-sync-pattern has not been updated in over a year.
- •axum-csrf-sync-pattern, axum-tower-sessions-csrf are pre-1.0 — API may change.