We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f940b04 commit c86c09bCopy full SHA for c86c09b
tests/cargo/mod.rs
@@ -1,4 +1,3 @@
1
-use cargo_metadata::MetadataCommand;
2
use lazy_static::lazy_static;
3
use std::env;
4
use std::path::PathBuf;
@@ -7,7 +6,7 @@ lazy_static! {
7
6
pub static ref CARGO_TARGET_DIR: PathBuf = {
8
match env::var_os("CARGO_TARGET_DIR") {
9
Some(v) => v.into(),
10
- None => MetadataCommand::new().exec().unwrap().target_directory,
+ None => env::current_dir().unwrap().join("target"),
11
}
12
};
13
pub static ref TARGET_LIB: PathBuf = {
0 commit comments