cairo_lang_starknet::compile

Function compile_contract_in_prepared_db

Source
pub fn compile_contract_in_prepared_db(
    db: &RootDatabase,
    contract_path: Option<&str>,
    main_crate_ids: Vec<CrateId>,
    compiler_config: CompilerConfig<'_>,
) -> Result<ContractClass>
Expand description

Runs StarkNet contract compiler on the specified contract. If no contract was specified, verify that there is only one. Otherwise, return an error.