Decision Workspace
armor vs ammonia vs content-security-policy
Side-by-side comparison of Rust crates
49
armor
growingv1.2.0
HTTP Security Headers.
67
ammonia
growingv4.1.2
HTML Sanitization
60
content-security-policy
growingv0.7.0
Will parse and validate Content-Security-Policy level 3
Core Metrics
| armor | ammonia | content-security-policy | |
|---|---|---|---|
| Health Score | 49 | 67 | 60 |
| Total Downloads | 7.9K | 10.2M | 350.5K |
| 30d Downloads | 25 | 516.7K | 36.7K |
| Dependents | 8 | 1.3K | 2 |
| Releases | 4 | 39 | 16 |
| Last Updated | 2357d ago | 187d ago | 6d ago |
| Age | 6y 10m | 10y 6m | 8y 5m |
Health Breakdown
armor
Maintenance
3
Quality
20
Community
9
Popularity
5
Documentation
12
ammonia
Maintenance
11
Quality
13
Community
20
Popularity
8
Documentation
15
content-security-policy
Maintenance
16
Quality
14
Community
9
Popularity
7
Documentation
14
Technical Details
| armor | ammonia | content-security-policy | |
|---|---|---|---|
| Version | 1.2.0 | 4.1.2 | 0.7.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 3 | 7 | 9 |
| Crate Size | 16KB | 57KB | 35KB |
| Features | 0 | 0 | 1 |
| Yanked % | 0.0% | 66.7% | 0.0% |
| Edition | 2018 | 2021 | 2018 |
| MSRV | — | 1.80 | 1.81.0 |
| Owners | 1 | 2 (team) | 2 (team) |
Links
Quick Verdict
- •ammonia leads with a health score of 67/100, but none of the options score above 80.
- •ammonia is depended on by 1.3K crates — strongest ecosystem trust.
- •⚠ armor has not been updated in over a year.
- •content-security-policy is pre-1.0 — API may change.