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 4+ years
  • !Pre-1.0: API may have breaking changes
  • โœ“Trusted by 674 crates
  • โœ“Permissive license (MIT/Apache-2.0)

Security

Checking security advisories...
Downloads
23.2M
Dependents
674
Releases
12
Size
30KB

Deep Insights

๐Ÿ“Š
Stable downloads

715.3K downloads in the last 30 days (23.8K/day). Volume is roughly flat compared to the previous period.

๐Ÿ”—
Moderate adoption

674 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, solana-security-txt, lspower, sincere, eu4save. 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
20K/day avg+75%
010K20K30K40K12/291/162/32/213/113/28

Top Dependents

Version Adoption

v0.1.8
79%
v0.2.2
14%
v0.2.1
6%
v0.2.0
1%
v0.1.7
0%

Release Timeline

12 releasessince 2015
J
F
M
A
M
J
J
A
S
O
N
D
2015
2
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
674
crates depend on twoway

Similar Crates