Function collect_examples

Source
pub fn collect_examples(
    prefix: &str,
    manifest_path: &Path,
    extended: bool,
) -> Result<Vec<CargoTarget>, Box<dyn Error>>
Expand description

Runs cargo run --example so that Cargo lists available examples, then parses the stderr output to return a vector of Example instances.