metasearch/src/engines/answer.rs

11 lines
257 B
Rust
Raw Normal View History

2023-12-20 10:08:36 +00:00
pub mod ip;
pub mod useragent;
macro_rules! regex {
($re:literal $(,)?) => {{
static RE: std::sync::OnceLock<regex::Regex> = std::sync::OnceLock::new();
RE.get_or_init(|| regex::Regex::new($re).unwrap())
}};
}
pub(crate) use regex;