Module e_runner

Source

Functionsยง

register_ctrlc_handler
Registers a global Ctrl+C handler once. The handler checks GLOBAL_CHILD and kills the child process if present.
run_example
Runs the given example (or binary) target. Runs an example or binary target, applying a temporary manifest patch if a workspace error is detected. This function uses the same idea as in the collection helpers: if the workspace error is found, we patch the manifest, run the command, and then restore the manifest.
spawn_cargo_process
Helper function to spawn a cargo process. On Windows, this sets the CREATE_NEW_PROCESS_GROUP flag.