Skip to main content

embedded_detector_specs

Function embedded_detector_specs 

Source
pub fn embedded_detector_specs() -> &'static [DetectorSpec]
Expand description

Every embedded detector spec, parsed EXACTLY ONCE for the whole process.

This is the single materialization of the compiled-in corpus: both the id-keyed lookup (detector_spec_by_id) and whole-corpus consumers (the ML service-vocabulary derivation in keyhog-scanner, registry audits) borrow from this one Vec instead of re-running load_embedded_detectors_or_fail and holding their own copy of every spec. Fails closed on a corrupt embedded corpus: a bundled TOML that will not parse is a build/source defect, never a silent empty set (Law 10).