pub fn compile_project(root: &Path) -> Result<ProjectCompileOutput>
Compile the project in the root directory, and return the compilation result.