Structs§
- AllCrates
Config - Additional configurations for all crates.
- Project
Config - Cairo project config, including its file content and metadata about the file. This file is expected to be at a root of a crate and specify the crate name and location and of its dependency crates.
- Project
Config Content - Contents of a Cairo project config file.
Enums§
Constants§
Functions§
- check_
compiler_ path - Checks that the given path is a valid compiler path.
- get_
main_ crate_ ids_ from_ project - setup_
project - Sets up the DB to compile the project at the given path.
The path can be either a directory with a Cairo project file or a
.cairofile. Returns the IDs of the project crates. - setup_
single_ file_ project - Sets up the DB to compile the file at the given path. Returns the id of the generated crate.
- update_
crate_ root - Updates a single crate root from a
ProjectConfig. If the crate defines settings in the config, they will be used. The crate is identified by name and root directory. - update_
crate_ roots_ from_ project_ config - Updates the crate roots from a
ProjectConfigobject.