pub fn prebuild_examples(targets: &[CargoTarget]) -> Result<()>Expand description
Prebuilds all given targets by invoking cargo build with the appropriate flags.
This function supports all target kinds:
- Example: Runs
cargo build --example <name> - ExtendedExample: Runs
cargo build --example <name> --manifest-path <manifest_path> - Binary: Runs
cargo build --bin <name> - ExtendedBinary: Runs
cargo build --bin <name> --manifest-path <manifest_path>
§Parameters
targets: A slice ofExampleinstances representing the targets to prebuild.
§Returns
Returns Ok(()) if all targets build successfully; otherwise, returns an error.