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.
49
axum-tower-sessions-csrf
experimentalv0.1.3
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
44
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 | 49 | 44 |
| Total Downloads | 14.0K | 784 | 30 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 0 | 1 |
| Releases | 10 | 3 | 2 |
| Last Updated | 780d ago | 41d ago | 25d ago |
| Age | 3y 6m | 5m | 25d |
Health Breakdown
axum-csrf-sync-pattern
Maintenance
4
Quality
13
Community
6
Popularity
5
Documentation
10
axum-tower-sessions-csrf
Maintenance
16
Quality
14
Community
6
Popularity
3
Documentation
10
rune-axum-csrf
Maintenance
12
Quality
13
Community
7
Popularity
2
Documentation
10
Technical Details
| axum-csrf-sync-pattern | axum-tower-sessions-csrf | rune-axum-csrf | |
|---|---|---|---|
| Version | 0.3.2 | 0.1.3 | 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 | 18KB | 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 49/100, but none of the options score above 80.
- •axum-csrf-sync-pattern has the most downloads (14.0K), suggesting wider adoption.
- •⚠ axum-csrf-sync-pattern has not been updated in over a year.