Decision Workspace
axum-tower-sessions-csrf vs rune-axum-csrf vs axum-csrf-sync-pattern
Side-by-side comparison of Rust crates
52
axum-tower-sessions-csrf
experimentalv0.1.4
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
42
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 | 52 | 42 | 38 |
| Total Downloads | 1.1K | 58 | 14.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 1 | 0 |
| Releases | 4 | 2 | 10 |
| Last Updated | 14d ago | 73d ago | 829d ago |
| Age | 7m | 2m | 3y 7m |
Health Breakdown
axum-tower-sessions-csrf
Maintenance
18
Quality
14
Community
6
Popularity
4
Documentation
10
rune-axum-csrf
Maintenance
10
Quality
13
Community
7
Popularity
2
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 52/100, but none of the options score above 80.
- •axum-csrf-sync-pattern has the most downloads (14.1K), suggesting wider adoption.
- •⚠ axum-csrf-sync-pattern has not been updated in over a year.