pub fn load_compile_deps(
items: &[TopLevel],
module_root: &str,
) -> Result<Vec<ModuleInfo>, String>Expand description
Load every dep module declared by items’s Module.depends, plus
every transitive dep, into codegen::ModuleInfo records ready to
hand to PipelineConfig.dep_modules.
Each dep goes through the same canonical pipeline as the entry —
pipeline::run with TypecheckMode::Full { base_dir: module_root },
run_interp_lower: false, run_buffer_build: false, and the
neutral alloc policy. Type errors in any dep surface as Err.
Callers that need the legacy commands.rs shape (run_interp_lower /
run_buffer_build / self_host_mode flags) still own their local copy;
every other call site — vm_verify, wasm_gc_verify, bench/runner,
the research test — should go through here so the dep-loading
contract stays in one place.