Decision Workspace
html_sanitize vs html_sanitize_derive vs bon
Side-by-side comparison of Rust crates
35
html_sanitize
growingv0.1.0
A macro based HTML sanitizer to add to structs so they can be sanitised before storage or transmission
36
html_sanitize_derive
growingv0.1.0
Derive macro for html_sanitize
76
bon
stablev3.9.1
Next-gen compile-time-checked builder generator, named function's arguments, and more!
Core Metrics
| html_sanitize | html_sanitize_derive | bon | |
|---|---|---|---|
| Health Score | 35 | 36 | 76 |
| Total Downloads | 880 | 1.0K | 26.3M |
| 30d Downloads | 3 | 20 | 4.5M |
| Dependents | 0 | 1 | 4.8K |
| Releases | 1 | 1 | 46 |
| Last Updated | 410d ago | 410d ago | 14d ago |
| Age | 1y 1m | 1y 1m | 1y 9m |
Health Breakdown
html_sanitize
Maintenance
2
Quality
14
Community
5
Popularity
4
Documentation
10
html_sanitize_derive
Maintenance
2
Quality
14
Community
6
Popularity
4
Documentation
10
bon
Maintenance
18
Quality
21
Community
17
Popularity
8
Documentation
12
Technical Details
| html_sanitize | html_sanitize_derive | bon | |
|---|---|---|---|
| Version | 0.1.0 | 0.1.0 | 3.9.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 4 | 5 | 6 |
| Crate Size | 7KB | 8KB | 67KB |
| Features | 0 | 0 | 7 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | — | 1.59.0 |
| Owners | 1 | 1 | 2 |
Links
Quick Verdict
- •bon leads with a health score of 76/100, but none of the options score above 80.
- •bon is depended on by 4.8K crates — strongest ecosystem trust.
- •⚠ html_sanitize, html_sanitize_derive have not been updated in over a year.
- •html_sanitize, html_sanitize_derive are pre-1.0 — API may change.