cairo_lang_sierra_generator::executables

Function find_executable_function_ids

Source
pub fn find_executable_function_ids(
    db: &dyn SierraGenGroup,
    main_crate_ids: Vec<CrateId>,
) -> HashMap<ConcreteFunctionWithBodyId, Vec<SmolStr>>
Expand description

Find all functions with executable attributes.

Executable attributes are plugin-backed attributes that declare a function as executable. You can create an executable attribute by implementing the executable_attributes function of MacroPlugin trait. This function finds all functions in the syntactic model marked with an executable attribute, and returns the attribute names, along the function id. Note, that a single function can be marked with more than one executable attribute. Only crates declared as main_crate_ids are considered.