{"id":58423,"library":"twoway","title":"twoway","description":"Fast substring search for strings and byte strings with optional SSE4.2 acceleration, now deprecated in favor of memchr.","status":"active","version":"0.2.2","language":"rust","source_language":null,"source_url":"https://github.com/bluss/twoway","tags":["string","search","deprecated"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntwoway = \"0.2.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add twoway","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"find_bytes","correct":"use twoway::find_bytes;"}],"quickstart":{"code":"use twoway::find_bytes;\n\nlet text = b\"hello world\";\nlet pattern = b\"world\";\nif let Some(pos) = find_bytes(text, pattern) {\n    println!(\"Found at {}\", pos);\n}","lang":"rust","description":"Demonstrates substring search using twoway."},"warnings":[{"fix":"Replace with memchr crate for continued support","message":"Deprecated - use memchr instead","severity":"breaking","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'acceler':13 'byte':8 'deprec':15,22 'fast':2 'favor':17 'memchr':19 'option':11 'search':4,21 'sse4.2':12 'string':6,9,20 'substr':3 'twoway':1","created_at":"2026-06-16T16:23:21.899470+00:00","updated_at":"2026-06-16T16:23:21.899470+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bluss/twoway","github":"https://github.com/bluss/twoway","docs":"https://docs.rs/twoway/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}