Decision Workspace
axum-tower-sessions-csrf vs axum-csrf-sync-pattern vs axum-helmet
Side-by-side comparison of Rust crates
46
axum-tower-sessions-csrf
experimentalv0.1.1
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
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.
54
axum-helmet
stablev1.0.1
HTTP security headers middleware core for axum web framework
Core Metrics
| axum-tower-sessions-csrf | axum-csrf-sync-pattern | axum-helmet | |
|---|---|---|---|
| Health Score | 46 | 38 | 54 |
| Total Downloads | 227 | 14.0K | 32.2K |
| 30d Downloads | 64 | 32 | 3.8K |
| Dependents | 0 | 0 | 40 |
| Releases | 2 | 10 | 6 |
| Last Updated | 106d ago | 721d ago | 19d ago |
| Age | 3m | 3y 4m | 2y 2m |
Health Breakdown
axum-tower-sessions-csrf
Maintenance
12
Quality
15
Community
6
Popularity
3
Documentation
10
axum-csrf-sync-pattern
Maintenance
4
Quality
13
Community
6
Popularity
5
Documentation
10
axum-helmet
Maintenance
15
Quality
14
Community
10
Popularity
5
Documentation
10
Technical Details
| axum-tower-sessions-csrf | axum-csrf-sync-pattern | axum-helmet | |
|---|---|---|---|
| Version | 0.1.1 | 0.3.2 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT OR LGPL-3.0-or-later | MPL-2.0 | MIT |
| Dependencies | 7 | 11 | 8 |
| Crate Size | 15KB | 19KB | 15KB |
| Features | 2 | 0 | 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-tower-sessions-csrf, axum-csrf-sync-pattern are pre-1.0 — API may change.