//! Convenience entry point: build a built-in registry on the fly and run a
//! single detection. For repeated calls, build a [`DetectorRegistry`] once
//! and reuse it.
usestd::path::Path;usecrate::detector::{DetectMatch, DetectorRegistry};pubfndetect_in_dir(dir:&Path)->Option<DetectMatch>{DetectorRegistry::with_builtins().detect(dir)}