cargo_component

Function run_cargo_command

Source
pub async fn run_cargo_command(
    client: Arc<CachingClient<FileCache>>,
    config: &Config,
    metadata: &Metadata,
    packages: &[PackageComponentMetadata<'_>],
    subcommand: Option<&str>,
    cargo_args: &CargoArguments,
    spawn_args: &[String],
) -> Result<Vec<PathBuf>>
Expand description

Runs the cargo command as specified in the configuration.

Note: if the command returns a non-zero status, or if the --help option was given on the command line, this function will exit the process.

Returns any relevant output components.