We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tempfile
tempdir
1 parent 1b97bc6 commit 661800eCopy full SHA for 661800e
Cargo.toml
@@ -25,4 +25,4 @@ jobserver = { version = "0.1.16", optional = true }
25
parallel = ["num_cpus", "jobserver"]
26
27
[dev-dependencies]
28
-tempdir = "0.3"
+tempfile = "3"
tests/support/mod.rs
@@ -8,7 +8,7 @@ use std::io::prelude::*;
8
use std::path::{Path, PathBuf};
9
10
use cc;
11
-use tempdir::TempDir;
+use tempfile::{Builder, TempDir};
12
13
pub struct Test {
14
pub td: TempDir,
@@ -27,7 +27,7 @@ impl Test {
if gcc.ends_with("deps") {
gcc.pop();
29
}
30
- let td = TempDir::new_in(&gcc, "gcc-test").unwrap();
+ let td = Builder::new().prefix("gcc-test").tempdir_in(&gcc).unwrap();
31
gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX));
32
Test {
33
td: td,
0 commit comments