Skip to main content

cargo_bin_opt

Function cargo_bin_opt 

pub fn cargo_bin_opt(name: &str) -> Option<PathBuf>
Expand description

Look up the path to a cargo-built binary within an integration test

Returns None if the binary doesn’t exist

Cargo support:

  • >1.94: works
  • >=1.91,<=1.93: works with default build-dir
  • <=1.92: works