Crate kittycad_execution_plan

source ·
Expand description

A KittyCAD execution plan (KCEP) is a list of

  • KittyCAD API requests to make
  • Values to send in API requests
  • Values to assign from API responses
  • Computation to perform on values You can think of it as a domain-specific language for making KittyCAD API calls and using the results to make other API calls.

Re-exports§

Modules§

  • Instruction for running KittyCAD API requests.
  • Defined constants and ability to create more.
  • Expose feature to import external geometry files. Instruction for importing a file. This will do all the file related operations, and return a kittycad_modeling_cmds::ImportFiles to be passed to Endpoint::ImportFiles.
  • KCVM aka KCEP instructions.
  • Types for sketching models.

Structs§

Enums§

  • Operations that can be applied to values in memory, requiring two operands.
  • Somewhere values can be written to.
  • Errors that could occur when executing a KittyCAD execution plan.
  • Argument to an operation.
  • Operations that can be applied to values in memory.
  • Operations that can be applied to a value in memory, requiring one operand.

Functions§

  • Execute the plan.
  • Execute the plan, returning the state at every moment of execution. Also return the index of the final instruction executed. This will be the last instruction if execution succeeded, but it might be earlier if execution had an error and quit.