Skip to main content

load_ir_modules_strict

Function load_ir_modules_strict 

Source
pub fn load_ir_modules_strict<A: Embed>(
    manifest: &AssetManifest,
) -> Result<(HashMap<String, RenderMode>, HashMap<String, IrModule>), Vec<IrLoadError>>
Expand description

load_ir_modules, but returns the collected failures so an app can fail startup on a build/embed skew rather than silently serving Phase 1.

Note the distinction the lenient variant cannot express: a missing embedded asset for a declared .ir is an error here, while a route that never had an ir field is not.