(name: &str)
| 273 | } |
| 274 | |
| 275 | fn legacy_cargo_bin(name: &str) -> Option<path::PathBuf> { |
| 276 | let target_dir = target_dir()?; |
| 277 | let bin_path = target_dir.join(format!("{}{}", name, env::consts::EXE_SUFFIX)); |
| 278 | if !bin_path.exists() { |
| 279 | return None; |
| 280 | } |
| 281 | Some(bin_path) |
| 282 | } |
| 283 | |
| 284 | // Adapted from |
| 285 | // https://github.com/rust-lang/cargo/blob/485670b3983b52289a2f353d589c57fae2f60f82/tests/testsuite/support/mod.rs#L507 |
no test coverage detected