{"repo":"BurntSushi/memchr","free":true,"listed":false,"github":"https://github.com/BurntSushi/memchr","clone":"git clone https://github.com/BurntSushi/memchr.git","description":"Optimized string search routines for Rust.","language":"Rust","stars":1540,"topics":["rust","memchr","string","string-searching","bytes","twoway","simd","rabin-karp"],"license":"Unlicense","category":"dev-tools","readme_excerpt":"memchr ====== This library provides heavily optimized routines for string search primitives. Dual-licensed under MIT or the UNLICENSE. Documentation https://docs.rs/memchr Overview The top-level module provides routines for searching for 1, 2 or 3 bytes in the forward or reverse direction. When searching for more than one byte, positions are considered a match if the byte at that position matches any of the bytes. The memmem sub-module provides forward and reverse substring search routines. In all such cases, routines operate on &[u8] without regard to encoding. This is exactly what you want when searching either UTF-8 or arbitrary bytes. Compiling without the standard library memchr links to the standard library by default, but you can disable the std feature if you want to use it in a #![no std] crate: On x86 64 platforms, when the std feature is disabled, the SSE2 accelerated implementations will be used. When std is enabled, AVX2 accelerated implementations will be used if the CPU is determined to support it at runtime. SIMD accelerated routines are also available on the wasm32 and aarch64 targets. The std feature is not required to use them. When a SIMD version is not available, then this crate falls back to SWAR techniques. Minimum Rust version policy This crate's minimum supported rustc version is 1.61.0 . The current policy is that the minimum Rust version required to use this crate can be increased in minor version updates. For example, if crate 1.0 requires Rust 1.2","default_branch":null,"files":null,"tree":[],"storefront":"/r/BurntSushi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BurntSushi/memchr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}