Decision Workspace
axum-csrf-sync-pattern vs axum-tower-sessions-csrf vs rune-axum-csrf
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.
48
axum-tower-sessions-csrf
experimentalv0.1.4
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
43
rune-axum-csrf
experimentalv0.1.1
CSRF protection middleware — double-submit cookie pattern for Axum
Core Metrics
| axum-csrf-sync-pattern | axum-tower-sessions-csrf | rune-axum-csrf | |
|---|---|---|---|
| Health Score | 38 | 48 | 43 |
| Total Downloads | 14.2K | 3.1K | 244 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 1 |
| Releases | 10 | 4 | 2 |
| Last Updated | 917d ago | 102d ago | 162d ago |
| Age | 3y 10m | 10m | 5m |
Health Breakdown
axum-csrf-sync-pattern
Maintenance
4
Quality
13
Community
6
Popularity
5
Documentation
10
axum-tower-sessions-csrf
Maintenance
14
Quality
14
Community
6
Popularity
4
Documentation
10
rune-axum-csrf
Maintenance
10
Quality
13
Community
7
Popularity
3
Documentation
10
Technical Details
| axum-csrf-sync-pattern | axum-tower-sessions-csrf | rune-axum-csrf | |
|---|---|---|---|
| Version | 0.3.2 | 0.1.4 | 0.1.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MPL-2.0 | MIT OR LGPL-3.0-or-later | MIT |
| Dependencies | 11 | 9 | 6 |
| Crate Size | 19KB | 16KB | 10KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •axum-tower-sessions-csrf leads with a health score of 48/100, but none of the options score above 80.
- •axum-csrf-sync-pattern has the most downloads (14.2K), suggesting wider adoption.
- •⚠ axum-csrf-sync-pattern has not been updated in over a year.