Expand description
vyre-std — the vyre standard library.
Vyre’s core crate ships primitive GPU ops (arithmetic, bitwise, memory,
workgroup coordination). vyre-std ships the L2 layer: compositional
helpers built from those primitives plus the full GPU DFA assembly
pipeline (Thompson NFA → subset construction → Hopcroft → pack).
The one-line consumer API is
pattern::dfa_assemble::dfa_assemble: pass a slice of
Pattern::Literal(&[u8]) or Pattern::Regex(&str) and get back a
PackedDfa whose bytes are backend-neutral dispatch payloads.
Aho-Corasick construction as a companion primitive is deferred —
see coordination/L.1.4-aho_corasick_build-rewrite-deferred.md.
§Example
use vyre_std::pattern::{dfa_assemble, AssembleOptions, Pattern};
let patterns = [Pattern::Literal(b"hello"), Pattern::Regex("wor[ld]+")];
let packed = dfa_assemble(&patterns, AssembleOptions::default()).unwrap();
assert!(!packed.bytes.is_empty());