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

Method inline_with_path

src/build.rs:179–189  ·  view source on GitHub ↗
(
        name: impl Into<String>,
        source: impl Into<String>,
        source_path: impl Into<PathBuf>,
    )

Source from the content-addressed store, hash-verified

177 manifest.entry = self.entry;
178 manifest.stdlib = self.stdlib.unwrap_or(manifest.stdlib);
179 if let Some(enabled) = self.import_closure {
180 manifest.import_closure = if enabled {
181 ImportClosurePolicy::Enabled {
182 mangle_symbols: !matches!(self.target, TargetMode::Kernel),
183 }
184 } else {
185 ImportClosurePolicy::Disabled
186 };
187 }
188 if let Some(mangle_symbols) = self.mangle_symbols
189 && matches!(manifest.import_closure, ImportClosurePolicy::Enabled { .. })
190 {
191 manifest.import_closure = ImportClosurePolicy::Enabled { mangle_symbols };
192 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected