Skip to content

Commit 8ea90e9

Browse files
committed
Switch to crossbeam_utils crate, sidesteppin
1 parent ac2d5d0 commit 8ea90e9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ path = "src/cargo/lib.rs"
1919
[dependencies]
2020
atty = "0.2"
2121
crates-io = { path = "src/crates-io", version = "0.18" }
22-
crossbeam = "0.4"
22+
crossbeam-utils = "0.4"
2323
crypto-hash = "0.3.1"
2424
curl = "0.4.13"
2525
env_logger = "0.5.4"
@@ -40,7 +40,6 @@ libc = "0.2"
4040
log = "0.4"
4141
libgit2-sys = "0.7.5"
4242
num_cpus = "1.0"
43-
parking_lot_core = "0.2.11" # required only for minimal-versions. brought in by crossbeam.
4443
rustfix = "0.4"
4544
same-file = "1"
4645
semver = { version = "0.9.0", features = ["serde"] }

src/cargo/core/compiler/job_queue.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use std::mem;
66
use std::sync::mpsc::{channel, Receiver, Sender};
77
use std::sync::Arc;
88

9-
use crossbeam;
10-
use crossbeam::thread::Scope;
9+
use crossbeam_utils;
10+
use crossbeam_utils::scoped::Scope;
1111
use jobserver::{Acquired, HelperThread};
1212

1313
use core::profiles::Profile;
@@ -166,7 +166,7 @@ impl<'a> JobQueue<'a> {
166166
srv.start(move |msg| drop(tx2.send(Message::FixDiagnostic(msg))))
167167
});
168168

169-
crossbeam::scope(|scope| self.drain_the_queue(cx, plan, scope, &helper))
169+
crossbeam_utils::scoped::scope(|scope| self.drain_the_queue(cx, plan, scope, &helper))
170170
}
171171

172172
fn drain_the_queue(

src/cargo/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extern crate clap;
1515
#[cfg(target_os = "macos")]
1616
extern crate core_foundation;
1717
extern crate crates_io as registry;
18-
extern crate crossbeam;
18+
extern crate crossbeam_utils;
1919
extern crate curl;
2020
#[macro_use]
2121
extern crate failure;

0 commit comments

Comments
 (0)