Decision Workspace
nestrs-security vs axum-helmet vs axum-tower-sessions-csrf
Side-by-side comparison of Rust crates
53
nestrs-security
experimentalv1.6.0
Security building blocks for nestrs — Bearer token parsing, AuthStrategyGuard, DemoXRoleMetadataGuard, helmet-style response-header middleware (Phase D surface), and the double-submit CSRF middleware (NestJS helmet + csurf parity).
52
axum-helmet
growingv1.0.2
HTTP security headers middleware core for axum web framework
48
axum-tower-sessions-csrf
experimentalv0.1.4
CSRF protection for Axum using tower-sessions with the Synchronizer Token Pattern
Core Metrics
| nestrs-security | axum-helmet | axum-tower-sessions-csrf | |
|---|---|---|---|
| Health Score | 53 | 52 | 48 |
| Total Downloads | 141 | 83.2K | 3.1K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 9 | 52 | 0 |
| Releases | 5 | 7 | 4 |
| Last Updated | 10d ago | 136d ago | 102d ago |
| Age | 22d | 2y 9m | 10m |
Health Breakdown
nestrs-security
Maintenance
13
Quality
16
Community
9
Popularity
3
Documentation
12
axum-helmet
Maintenance
9
Quality
16
Community
11
Popularity
6
Documentation
10
axum-tower-sessions-csrf
Maintenance
14
Quality
14
Community
6
Popularity
4
Documentation
10
Technical Details
| nestrs-security | axum-helmet | axum-tower-sessions-csrf | |
|---|---|---|---|
| Version | 1.6.0 | 1.0.2 | 0.1.4 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT | MIT OR LGPL-3.0-or-later |
| Dependencies | 10 | 8 | 9 |
| Crate Size | 13KB | 15KB | 16KB |
| Features | 3 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.88 | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •nestrs-security leads with a health score of 53/100, but none of the options score above 80.
- •axum-helmet has the most downloads (83.2K), suggesting wider adoption.
- •axum-tower-sessions-csrf is pre-1.0 — API may change.