rustio rustio.net
54

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.

MIT/Apache-2.0
AlgorithmsNo standard library #string#find#substring-search#pcmpestri#memmem

Quick Verdict

  • โœ•Not updated for 5+ years
  • !Pre-1.0: API may have breaking changes
  • โœ“Trusted by 675 crates
  • โœ“Permissive license (MIT/Apache-2.0)

Security

Checking security advisories...
Downloads
25.5M
Dependents
675
Releases
12
Size
30KB

Deep Insights

๐Ÿ“‰
Download decline

994.5K downloads in the last 30 days, down 22% from the previous period. May indicate migration to alternatives.

๐Ÿ”—
Moderate adoption

675 crates depend on twoway. Reasonable ecosystem adoption, though not yet a core dependency.

๐Ÿ”ฌ
Pre-1.0 for over a year

Despite being 10+ years old, twoway hasn't reached 1.0 yet. Expect potential API changes between versions.

๐Ÿ“
Compact crate

At 30KB, twoway is lightweight. Small crate size correlates with focused, well-scoped functionality.

๐ŸŒŸ
Used by top crates

Notable dependents include multipart, lspower, sincere, eu4save, ck3save. When high-quality crates choose twoway, it's a strong quality signal.

Health Breakdown

Maintenance 5/25

Recency, release consistency, active ratio

Quality 16/25

Yanked ratio, deps, size, maturity, features

Community 14/20

Reverse deps, ownership, ecosystem

Popularity 8/15

Downloads, momentum, growth trend

Documentation 11/15

Docs, repo, license, metadata

Download Trend

Daily downloads ยท last 90 days
33K/day avg+45%
020K40K60K80K2/263/164/34/215/95/26

Top Dependents

Version Adoption

v0.1.8
80%
v0.2.2
13%
v0.2.1
5%
v0.2.0
1%
v0.1.7
0%

Release Timeline

10 releasessince 2016
J
F
M
A
M
J
J
A
S
O
N
D
2016
2
2017
4
2018
2
2019
1
2020
2021
1
2022
2023
2024
2025
2026
Less
More

Feature Flags

default =["use_std"]

allpatternuse_std*benchmarks

README

Loading README...

Maintainers

Dependencies
10
direct dependencies
Dependents
675
crates depend on twoway

Similar Crates