Module project

Source

Structs§

AllCratesConfig
Additional configurations for all crates.
ProjectConfig
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.
ProjectConfigContent
Contents of a Cairo project config file.

Enums§

DeserializationError
ProjectError

Constants§

PROJECT_FILE_NAME

Functions§

check_compiler_path
Checks that the given path is a valid compiler path.
get_main_crate_ids_from_project
setup_project
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.
setup_single_file_project
Setup to ‘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, it will be used. Crate is identified by name and the root directory.
update_crate_roots_from_project_config
Updates the crate roots from a ProjectConfig object.