Skip to content

Commit

Permalink
Improve documentation of select_run_package
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Oct 16, 2024
1 parent 16c6ebf commit ffb2576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ pub fn run(args: &RunArgs) -> anyhow::Result<()> {
}

/// Determine which package should be run.
///
/// We first take a look at the `--bin` and `--package` args.
/// If they are not defined, we try to determine the package automatically with the information
/// provided by cargo metadata.
/// We first look for the `default_run` definition and otherwise check if there is only a single
/// binary package that could be run.
fn select_run_package<'a>(
metadata: &'a Metadata,
args: &CargoRunArgs,
Expand Down

0 comments on commit ffb2576

Please sign in to comment.