summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/tarballer.rs2
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);