Decision Workspace
bubble-bath vs ammonia vs safehtml
Side-by-side comparison of Rust crates
36
bubble-bath
growingv0.2.1
Small and quick HTML sanitizer
74
ammonia
stablev4.2.1
HTML Sanitization
47
safehtml
experimentalv0.2.0
A high-performance, no_std Rust library for Type-Driven Security (XSS and injection prevention).
Core Metrics
| bubble-bath | ammonia | safehtml | |
|---|---|---|---|
| Health Score | 36 | 74 | 47 |
| Total Downloads | 14.2K | 18.1M | 41 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2.1K | 0 |
| Releases | 7 | 48 | 2 |
| Last Updated | 702d ago | 7d ago | 83d ago |
| Age | 2y 10m | 11y 1m | 2m |
Health Breakdown
bubble-bath
Maintenance
5
Quality
10
Community
6
Popularity
5
Documentation
10
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
safehtml
Maintenance
9
Quality
15
Community
6
Popularity
2
Documentation
15
Technical Details
| bubble-bath | ammonia | safehtml | |
|---|---|---|---|
| Version | 0.2.1 | 4.2.1 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 10 | 6 | 4 |
| Crate Size | 22KB | 65KB | 82KB |
| Features | 3 | 0 | 4 |
| Yanked % | 28.6% | 54.2% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.85 | 1.85 |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •ammonia leads with a health score of 74/100, but none of the options score above 80.
- •ammonia is depended on by 2.1K crates — strongest ecosystem trust.
- •⚠ bubble-bath has not been updated in over a year.
- •bubble-bath, safehtml are pre-1.0 — API may change.