Skip to main content

create_cairo0_program_task

Function create_cairo0_program_task 

Source
pub fn create_cairo0_program_task(
    program_path: &Path,
    program_input: Option<String>,
) -> Result<Task, BootloaderTaskError>
Expand description

Creates a TaskSpec for a cairo0 program task by loading a program from a specified file path.

§Arguments

  • program_path: A reference to a Path where the program file is located.

§Returns

  • Ok(Task): On success, returns a Task with the loaded program.
  • Err(BootloaderTaskError): On failure, returns a BootloaderTaskError::Program if there’s an issue with loading the program file.