asimov-serpapi-module 0.1.0

ASIMOV module for data import powered by the SerpApi search data platform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This is free and unencumbered software released into the public domain.

pub use ::jq::*;

#[cfg(feature = "std")]
pub fn search() -> &'static JsonFilter {
    use std::sync::OnceLock;
    static ONCE: OnceLock<JsonFilter> = OnceLock::new();
    ONCE.get_or_init(|| include_str!("jq/search.jq").parse().unwrap())
}

#[cfg(not(feature = "std"))]
pub fn search() -> JsonFilter {
    include_str!("jq/search.jq").parse().unwrap()
}