hypervectorscan
Safe Rust wrapper for Hyperscan / Vectorscan — high-performance multi-pattern regex matching.
Usage
By default (autobuild feature), the build system auto-detects the best way to get the C library — no manual configuration needed.
use ;
let patterns = vec!;
let db = new?;
let mut scanner = db.create_scanner;
scanner.scan?;
Features
| Feature | Description |
|---|---|
autobuild |
Auto-detect: conan → vcpkg → system → vendored |
conan2 |
Force Conan package manager |
vcpkg |
Force vcpkg package manager |
system |
Force system-installed library (apt install libhyperscan-dev) |
vendored |
Force bundled source cmake build |
avx512 |
Enable AVX512 (vendored x86_64 only) |
avxvnni |
Enable AVX512VBMI (vendored x86_64 only) |
All features are passed through to hypervectorscan-sys.
API
| Module | Key Types | Description |
|---|---|---|
native |
BlockDatabase, BlockScanner, StreamingDatabase, StreamScanner |
High-level scanning API |
wrapper |
Database, Scratch, Pattern, SerializedDatabase |
FFI wrapper types |
error |
Error, HyperscanErrorCode, AsResult |
Error handling |