Decision Workspace
axum-tower-sessions-csrf vs rune-axum-csrf vs axum-csrf-sync-pattern
Side-by-side comparison of Rust crates
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
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.
Core Metrics
| axum-tower-sessions-csrf | rune-axum-csrf | axum-csrf-sync-pattern | |
|---|---|---|---|
| Health Score | 48 | 43 | 38 |
| Total Downloads | 3.1K | 244 | 14.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 4 | 2 | 10 |
| Last Updated | 102d ago | 162d ago | 917d ago |
| Age | 10m | 5m | 3y 10m |
Health Breakdown
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
axum-csrf-sync-pattern
Maintenance
4
Quality
13
Community
6
Popularity
5
Documentation
10
Technical Details
| axum-tower-sessions-csrf | rune-axum-csrf | axum-csrf-sync-pattern | |
|---|---|---|---|
| Version | 0.1.4 | 0.1.1 | 0.3.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR LGPL-3.0-or-later | MIT | MPL-2.0 |
| Dependencies | 9 | 6 | 11 |
| Crate Size | 16KB | 10KB | 19KB |
| Features | 2 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| 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.