Decision Workspace
str-of-bytes vs bstr vs str-macro
Side-by-side comparison of Rust crates
39
str-of-bytes
growingv0.1.0
Provide some str functions over owned storage
73
bstr
stablev1.13.1
A string type that is not required to be valid UTF-8.
52
str-macro
growingv1.0.1
The str!() macro, similar to vec![] but for strings
Core Metrics
| str-of-bytes | bstr | str-macro | |
|---|---|---|---|
| Health Score | 39 | 73 | 52 |
| Total Downloads | 522 | 449.5M | 1.5M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 9.6K | 99 |
| Releases | 1 | 53 | 7 |
| Last Updated | 481d ago | 60d ago | 359d ago |
| Age | 1y 3m | 8y | 7y 5m |
Health Breakdown
str-of-bytes
Maintenance
2
Quality
16
Community
6
Popularity
3
Documentation
12
bstr
Maintenance
15
Quality
20
Community
15
Popularity
8
Documentation
15
str-macro
Maintenance
5
Quality
21
Community
10
Popularity
7
Documentation
9
Technical Details
| str-of-bytes | bstr | str-macro | |
|---|---|---|---|
| Version | 0.1.0 | 1.13.1 | 1.0.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | BSD-2-Clause | MIT OR Apache-2.0 | MIT |
| Dependencies | 7 | 6 | 0 |
| Crate Size | 30KB | 357KB | 4KB |
| Features | 2 | 5 | 0 |
| Yanked % | 0.0% | 1.9% | 0.0% |
| Edition | 2024 | 2021 | 2018 |
| MSRV | 1.87 | 1.65 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bstr leads with a health score of 73/100, but none of the options score above 80.
- •bstr is depended on by 9.6K crates — strongest ecosystem trust.
- •⚠ str-of-bytes has not been updated in over a year.
- •str-of-bytes is pre-1.0 — API may change.