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

Method from_user_program

src/build.rs:78–91  ·  view source on GitHub ↗
(program: &crate::userspace::UserProgram)

Source from the content-addressed store, hash-verified

76 abi_exports: Vec::new(),
77 latency: None,
78 run_semantic_analysis: true,
79 write_artifacts: false,
80 }
81 }
82
83 pub fn from_user_program(program: &crate::userspace::UserProgram) -> Self {
84 let mut manifest = Self::hosted(program.name, program.source);
85 manifest.root =
86 BuildSource::inline_with_path(program.name, program.source, program.source_path);
87 manifest.import_closure = if program.import_closure {
88 ImportClosurePolicy::Enabled {
89 mangle_symbols: program.mangle_symbols,
90 }
91 } else {
92 ImportClosurePolicy::Disabled
93 };
94 manifest.source_prelude = (!program.layout.is_empty()).then(|| program.layout.to_owned());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected