cairo_lang_compiler::project

Function setup_project

Source
pub fn setup_project(
    db: &mut dyn SemanticGroup,
    path: &Path,
) -> Result<Vec<CrateId>, ProjectError>
Expand description

Setup the ‘db’ to compile the project in the given path. The path can be either a directory with cairo project file or a .cairo file. Returns the ids of the project crates.