We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0aeb3c + f8f0321 commit 89dd52eCopy full SHA for 89dd52e
rftrace/Cargo.toml
@@ -31,6 +31,7 @@ default = []
31
crate-type = ['staticlib', 'rlib']
32
33
[build-dependencies]
34
+home = "0.5"
35
llvm-tools = "0.1"
36
37
#[profile.dev]
rftrace/build.rs
@@ -99,7 +99,7 @@ fn sanitize(cmd: &str) -> Command {
99
let exe = format!("{cmd}{}", env::consts::EXE_SUFFIX);
100
// On windows, the userspace toolchain ends up in front of the rustup proxy in $PATH.
101
// To reach the rustup proxy nonetheless, we explicitly query $CARGO_HOME.
102
- let mut cargo_home = PathBuf::from(env::var_os("CARGO_HOME").unwrap());
+ let mut cargo_home = home::cargo_home().unwrap();
103
cargo_home.push("bin");
104
cargo_home.push(&exe);
105
if cargo_home.exists() {
0 commit comments