Skip to main content

load_source_bundle

Function load_source_bundle 

Source
pub fn load_source_bundle<R: ScriptResolver + ?Sized>(
    resolver: &R,
    root_name: &str,
    options: SourceLoadOptions,
) -> Result<SourceBundle, PreprocessError>
Expand description

Loads a root script and recursively discovers its #include dependencies.

ยงErrors

Returns PreprocessError if any script cannot be resolved or loaded.