twoway
v0.2.2 Growing(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.
Quick Verdict
- โNot updated for 4+ years
- !Pre-1.0: API may have breaking changes
- โTrusted by 674 crates
- โPermissive license (MIT/Apache-2.0)
Security
Deep Insights
715.3K downloads in the last 30 days (23.8K/day). Volume is roughly flat compared to the previous period.
674 crates depend on twoway. Reasonable ecosystem adoption, though not yet a core dependency.
Despite being 10+ years old, twoway hasn't reached 1.0 yet. Expect potential API changes between versions.
At 30KB, twoway is lightweight. Small crate size correlates with focused, well-scoped functionality.
Notable dependents include multipart, solana-security-txt, lspower, sincere, eu4save. When high-quality crates choose twoway, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on twoway
Version Adoption
Release Timeline
Feature Flags
default =["use_std"]