Skip to main content

load_ir_modules

Function load_ir_modules 

Source
pub fn load_ir_modules<A: Embed>(
    manifest: &AssetManifest,
) -> (HashMap<String, RenderMode>, HashMap<String, IrModule>)
👎Deprecated since 0.2.2:

serves a corrupt module’s route as an empty shell for the life of the process; use load_ir_modules_strict, the default loader, and refuse to start on its errors. Removed in 3.0.0

Expand description

Load and parse all IR modules from the asset manifest, ignoring failures.

Every failure is logged and represented as Phase1ClientMount, so a broken build degrades instead of refusing to start: a corrupt module’s route is served as an empty shell for the life of the process.

Routes with no .ir field in the manifest are not included in the returned map — callers should treat absent routes as Phase1ClientMount.

Deprecated: load_ir_modules_strict is the default loader from 0.2.2, and 3.0.0 removes this one. It behaves exactly as at 0.2.1, and in debug builds logs its deprecation once per process.