# memchr

> SIMD-accelerated byte and substring search for Rust

Source: https://talira.ai/catalog/memchr-r5q0v855
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / text / strings](https://talira.ai/categories/libraries/text/strings), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Unlicense[^1][^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Andrew Gallant](https://talira.ai/orgs/andrew-gallant.md)

memchr is a [Rust](https://talira.ai/catalog/rust-mf51vs5t.md) library of heavily optimised string search primitives: searching for one, two or three bytes forwards or backwards, and forward and reverse substring search (`memmem`), on raw `&[u8]` regardless of encoding. It uses SIMD on x86_64 (SSE2, or AVX2 when detected at run time), aarch64 and wasm32, falls back to portable code elsewhere, and works in `no_std` crates. It's by Andrew Gallant (BurntSushi).

## Links

- GitHub: https://github.com/BurntSushi/memchr
- Docs: https://docs.rs/memchr

## Problems it solves

- find a byte quickly in a large buffer in Rust
- fast substring search over bytes in Rust
- SIMD string search in a no_std crate

## Features

- 1, 2 and 3 byte search, forward and reverse
- memmem substring search
- SIMD on x86_64, aarch64 and wasm32
- no_std support

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.45, adoption 0.64, momentum 0.33, community 0.70, backing 0.30, extensibility 0.00.

- last commit 3 months ago
- 1.6k GitHub stars
- 54 contributors
- accepts sponsorship (Github)
- backed by Andrew Gallant

## Sources

[^1]: https://github.com/BurntSushi/memchr/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/BurntSushi/memchr/blob/master/LICENSE-MIT (checked 29 Nov 2026)
[^3]: https://github.com/BurntSushi/memchr/blob/master/UNLICENSE (checked 29 Nov 2026)
