Skip to main content

compile_project

Function compile_project 

Source
pub fn compile_project(entry_file: &Path) -> Result<CompileOutput, CompileError>
Expand description

Compile a multi-file LOGOS project with dependency resolution.

This function:

  1. Reads the entry file
  2. Scans for dependencies in the abstract (Markdown links)
  3. Recursively loads and discovers types from dependencies
  4. Compiles with the combined type registry

§Arguments

  • entry_file - The main entry file to compile (root is derived from parent directory)

§Example

let result = compile_project(Path::new("/project/main.md"));