Function run_example

Source
pub fn run_example(
    target: &Example,
    extra_args: &[String],
) -> Result<ExitStatus, Box<dyn Error>>
Expand description

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.