Function regorust::regoBundleLoad

source ยท
pub unsafe extern "C" fn regoBundleLoad(
    rego: *mut regoInterpreter,
    dir: *const c_char,
) -> *mut regoBundle
Expand description

@brief Loads a compiled Rego bundle from the specified directory. @details The directory must contain a valid Rego bundle, which consists of a plan.json file, a data.json file, and zero or more .rego files which were used to create the bundle. @param rego The interpreter @param dir The path to the directory containing the bundle. @return The loaded bundle, or NULL if there was an error.