pub fn run_project(
dir: impl AsRef<Path>,
opts: &RunOptions,
) -> Result<CapturedOutput>Expand description
Script execution runner. Script execution runner. Script execution runner. Script execution runner. Script execution runner. Execute an existing Cargo project directory.
Invokes cargo run --quiet with the project’s Cargo.toml. No temporary
workspace is created; the project’s own layout and target directory are used
unless opts.target_dir overrides them. All RunOptions fields apply:
cargo_path, build_profile, features, env_vars, capture,
timeout_ms.
§Errors
Returns Err if no Cargo.toml is found in dir or if the cargo
binary cannot be invoked.