(program: &crate::userspace::UserProgram)
| 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()); |
nothing calls this directly
no outgoing calls
no test coverage detected