summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-02-16 00:53:35 -0600
committerGitHub <noreply@github.com>2018-02-16 00:53:35 -0600
commit1fa2acb25d98d0ce9e22284f5a321d89916acd09 (patch)
tree4278a60be43fb59fa6f4b9dfe14fed8795d2a6e2
parentb55e0fc77590cf5d23a01dedeb2104d8cbb48efc (diff)
parent4e0f67bdaaaed06af172c16abc4a0840a303de73 (diff)
downloadrust-installer-1fa2acb25d98d0ce9e22284f5a321d89916acd09.tar.gz
Merge pull request #77 from cuviper/rayon1
update to rayon 1.0
-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);