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>)
Expand description

Load and parse all IR modules from the asset manifest.

For each route with an .ir file, loads the binary from embedded assets, parses it, and checks compatibility. Returns render mode decisions and parsed modules.

Routes with valid IR get Phase2SsrReconcile. Invalid or missing IR falls back to Phase1ClientMount. Routes with no .ir field in the manifest are not included in the returned map — callers should treat absent routes as Phase1ClientMount.