Decision Workspace
twoway vs memchr vs similar-string
Side-by-side comparison of Rust crates
54
twoway
growingv0.2.2
(Deprecated - use crate memchr instead.) Fast substring search for strings and byte strings. Optional SSE4.2 acceleration (if detected at runtime) using pcmpestri. Memchr is the only mandatory dependency. The two way algorithm is also used by rust's libstd itself, but here it is exposed both for byte strings, using memchr, and optionally using a SSE4.2 accelerated version.
72
memchr
stablev2.8.0
Provides extremely fast (uses SIMD on x86_64, aarch64 and wasm32) routines for 1, 2 or 3 byte search and single substring search.
54
similar-string
growingv1.4.3
Find similar strings in Rust
Core Metrics
| twoway | memchr | similar-string | |
|---|---|---|---|
| Health Score | 54 | 72 | 54 |
| Total Downloads | 23.2M | 842.6M | 35.4K |
| 30d Downloads | 684.2K | 60.6M | 2.7K |
| Dependents | 674 | 17.1K | 57 |
| Releases | 12 | 44 | 8 |
| Last Updated | 1773d ago | 49d ago | 1326d ago |
| Age | 10y 3m | 10y 9m | 3y 7m |
Health Breakdown
twoway
Maintenance
5
Quality
16
Community
14
Popularity
8
Documentation
11
memchr
Maintenance
15
Quality
22
Community
12
Popularity
8
Documentation
15
similar-string
Maintenance
10
Quality
21
Community
8
Popularity
5
Documentation
10
Technical Details
| twoway | memchr | similar-string | |
|---|---|---|---|
| Version | 0.2.2 | 2.8.0 | 1.4.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT/Apache-2.0 | Unlicense OR MIT | MIT |
| Dependencies | 10 | 3 | 0 |
| Crate Size | 30KB | 98KB | 3KB |
| Features | 5 | 7 | 0 |
| Yanked % | 0.0% | 2.3% | 0.0% |
| Edition | — | 2021 | 2021 |
| MSRV | — | 1.61 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •memchr leads with a health score of 72/100, but none of the options score above 80.
- •memchr is depended on by 17.1K crates — strongest ecosystem trust.
- •⚠ twoway, similar-string have not been updated in over a year.
- •twoway is pre-1.0 — API may change.