Adapted from https://github.com/rust-lang/cargo/blob/485670b3983b52289a2f353d589c57fae2f60f82/tests/testsuite/support/mod.rs#L507
()
| 284 | // Adapted from |
| 285 | // https://github.com/rust-lang/cargo/blob/485670b3983b52289a2f353d589c57fae2f60f82/tests/testsuite/support/mod.rs#L507 |
| 286 | fn target_dir() -> Option<path::PathBuf> { |
| 287 | let mut path = env::current_exe().ok()?; |
| 288 | let _test_bin_name = path.pop(); |
| 289 | if path.ends_with("deps") { |
| 290 | let _deps = path.pop(); |
| 291 | } |
| 292 | Some(path) |
| 293 | } |
| 294 | |
| 295 | /// The current process' target triplet. |
| 296 | const CURRENT_TARGET: &str = include_str!(concat!(env!("OUT_DIR"), "/current_target.txt")); |