str/config
Configuration helpers for opt-in experimental features.
This module provides a single place to control compile-time or build-time toggles related to experimental string search helpers. By default features are disabled; projects may replace this module at build-time if they want a different default (e.g. enable in staging).
Values
pub fn kmp_border_multiplier() -> Int
Multiplier applied to max border to decide repetitiveness (default 2)
pub fn kmp_large_text_min_pat() -> Int
Minimum pattern length to consider KMP on large texts
pub fn kmp_large_text_threshold() -> Int
Threshold for “large” text lengths where KMP may be preferred
pub fn kmp_min_pattern_len() -> Int
Minimum pattern length (in grapheme clusters) at which KMP is preferred
pub fn smart_search_enabled() -> Bool
Returns True when the smart search (heuristic KMP/sliding selection)
should be enabled by default. This is intentionally False so that
experimental APIs remain opt-in unless consumers explicitly enable
them in their build.