pub fn compile(
project_config: ProjectConfig,
compiler_config: CompilerConfig<'_>,
) -> Result<Program>
Expand description
Compiles a Cairo project.
The project must be a valid Cairo project.
This function is a wrapper over RootDatabase::builder()
and compile_prepared_db_program
.
§Arguments
project_config
- The project configuration.compiler_config
- The compiler configuration.
§Returns
Ok(Program)
- The compiled program.Err(anyhow::Error)
- Compilation failed.