MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / set_module_resolver

Method set_module_resolver

src/compilation_pipeline.rs:330–332  ·  view source on GitHub ↗

Set the resolver mapping `import("name")` to that module's source (default: the `PROGRAMS`-backed lookup). Pass `None` to disable import resolution entirely.

(&mut self, resolver: Option<ModuleResolver>)

Source from the content-addressed store, hash-verified

328 pub fn set_module_mangling(&mut self, enabled: bool) {
329 self.mangle_in_closure = enabled;
330 }
331
332 fn module_key(path: &str) -> &str {
333 path.trim_start_matches("./").trim_end_matches(".hll")
334 }
335

Calls

no outgoing calls