Decision Workspace
b4s vs bstr vs aho-corasick
Side-by-side comparison of Rust crates
43
b4s
growingv0.3.4
Binary Search Single Sorted String: Perform binary search on a single, delimited string slice of sorted but unevenly sized substrings.
71
bstr
stablev1.12.1
A string type that is not required to be valid UTF-8.
65
aho-corasick
growingv1.1.4
Fast multiple substring searching.
Core Metrics
| b4s | bstr | aho-corasick | |
|---|---|---|---|
| Health Score | 43 | 71 | 65 |
| Total Downloads | 10.4K | 269.3M | 728.6M |
| 30d Downloads | 12 | 17.1M | 48.4M |
| Dependents | 0 | 6.8K | 6.5K |
| Releases | 7 | 49 | 62 |
| Last Updated | 949d ago | 152d ago | 150d ago |
| Age | 2y 9m | 7y 5m | 10y 9m |
Health Breakdown
b4s
Maintenance
4
Quality
14
Community
5
Popularity
5
Documentation
15
bstr
Maintenance
13
Quality
20
Community
15
Popularity
8
Documentation
15
aho-corasick
Maintenance
11
Quality
20
Community
14
Popularity
8
Documentation
12
Technical Details
| b4s | bstr | aho-corasick | |
|---|---|---|---|
| Version | 0.3.4 | 1.12.1 | 1.1.4 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | Unlicense OR MIT |
| Dependencies | 7 | 6 | 3 |
| Crate Size | 17KB | 355KB | 184KB |
| Features | 0 | 5 | 4 |
| Yanked % | 0.0% | 2.0% | 3.2% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.64.0 | 1.73 | 1.60.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bstr leads with a health score of 71/100, but none of the options score above 80.
- •aho-corasick has the most downloads (728.6M), suggesting wider adoption.
- •bstr is depended on by 6.8K crates — strongest ecosystem trust.
- •⚠ b4s has not been updated in over a year.
- •b4s is pre-1.0 — API may change.