detect_targets

Function get_desired_targets

Source
pub fn get_desired_targets(opts_targets: Option<Vec<String>>) -> DesiredTargets
Expand description

If opts_targets is Some, then it will be used. Otherwise, call detect_targets using tokio::spawn to detect targets.

Since detect_targets internally spawns a process and wait for it, it’s pretty costy, it is recommended to run this fn ASAP and reuse the result.