Decision Workspace
str-of-bytes vs bstr vs str-macro
Side-by-side comparison of Rust crates
39
str-of-bytes
experimentalv0.1.0
Provide some str functions over owned storage
71
bstr
stablev1.12.1
A string type that is not required to be valid UTF-8.
56
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 | 71 | 56 |
| Total Downloads | 507 | 269.3M | 1.1M |
| 30d Downloads | 3 | 16.5M | 13.9K |
| Dependents | 0 | 6.8K | 97 |
| Releases | 1 | 49 | 7 |
| Last Updated | 285d ago | 152d ago | 162d ago |
| Age | 9m | 7y 5m | 6y 11m |
Health Breakdown
str-of-bytes
Maintenance
3
Quality
15
Community
6
Popularity
3
Documentation
12
bstr
Maintenance
13
Quality
20
Community
15
Popularity
8
Documentation
15
str-macro
Maintenance
9
Quality
21
Community
10
Popularity
7
Documentation
9
Technical Details
| str-of-bytes | bstr | str-macro | |
|---|---|---|---|
| Version | 0.1.0 | 1.12.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 | 355KB | 4KB |
| Features | 2 | 5 | 0 |
| Yanked % | 0.0% | 2.0% | 0.0% |
| Edition | 2024 | 2021 | 2018 |
| MSRV | 1.87 | 1.73 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bstr leads with a health score of 71/100, but none of the options score above 80.
- •bstr is depended on by 6.8K crates — strongest ecosystem trust.
- •str-of-bytes is pre-1.0 — API may change.