From 4e0f67bdaaaed06af172c16abc4a0840a303de73 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 15 Feb 2018 16:39:39 -0800 Subject: update to rayon 1.0 --- Cargo.toml | 2 +- src/tarballer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 050e222..f9534f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ path = "src/main.rs" [dependencies] error-chain = "0.11.0" flate2 = "1.0.1" -rayon = "0.9" +rayon = "1.0" tar = "0.4.13" walkdir = "1.0.7" xz2 = "0.1.4" diff --git a/src/tarballer.rs b/src/tarballer.rs index f7a09fb..9333210 100644 --- a/src/tarballer.rs +++ b/src/tarballer.rs @@ -68,7 +68,7 @@ impl Tarballer { let buf = BufWriter::with_capacity(1024 * 1024, tee); let mut builder = Builder::new(buf); - let pool = rayon::Configuration::new().num_threads(2).build().unwrap(); + let pool = rayon::ThreadPoolBuilder::new().num_threads(2).build().unwrap(); pool.install(move || { for path in dirs { let src = Path::new(&self.work_dir).join(&path); -- cgit v1.2.1