Expand description
Cairo compiler.
This crate is responsible for compiling a Cairo project into a Sierra program. It is the main entry point for the compiler.
Modules§
Structs§
- Configuration for the compiler.
Functions§
- Compiles a Cairo project. The project must be a valid Cairo project. This function is a wrapper over
RootDatabase::builder()
andcompile_prepared_db_program
. - Compiles a Cairo project at the given path. The project must be a valid Cairo project: Either a standalone
.cairo
file (a single crate), or a directory with acairo_project.toml
file. - Runs Cairo compiler.
- Runs Cairo compiler.
- Runs Cairo compiler.
- Checks if there are diagnostics in the database and if there are None, returns the SierraProgramWithDebug object of the requested functions