summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/build.rs b/build.rs
index fd9aee37..22799c95 100644
--- a/build.rs
+++ b/build.rs
@@ -14,15 +14,12 @@
#[cfg(windows)]
extern crate embed_resource;
#[cfg(windows)]
-extern crate tempdir;
+extern crate tempfile;
#[cfg(windows)]
extern crate reqwest;
#[cfg(windows)]
extern crate zip;
-#[cfg(windows)]
-use tempdir::TempDir;
-
extern crate gl_generator;
use gl_generator::{Api, Fallbacks, GlobalGenerator, Profile, Registry};
@@ -66,8 +63,7 @@ fn main() {
#[cfg(windows)]
fn aquire_winpty_agent(out_path: &Path) {
- let tmp_dir = TempDir::new("alacritty_build").unwrap();
-
+ let tmp_dir = tempfile::Builder::new().prefix("alacritty_build").tempdir().unwrap();
let mut response = reqwest::get(WINPTY_PACKAGE_URL).unwrap();
let mut file = OpenOptions::new()