diff --git a/Cargo.lock b/Cargo.lock index e266bd27..7df14ca6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,7 +25,7 @@ dependencies = [ "crossbeam-channel", "git2", "log", - "rayon", + "rayon-core", "scopetime", ] @@ -581,17 +581,6 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677" -[[package]] -name = "rayon" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db6ce3297f9c85e16621bb8cca38a06779ffc31bb8184e1be4bed2be4678a098" -dependencies = [ - "crossbeam-deque", - "either", - "rayon-core", -] - [[package]] name = "rayon-core" version = "1.7.0" diff --git a/asyncgit/Cargo.toml b/asyncgit/Cargo.toml index c77f3acf..905c8789 100644 --- a/asyncgit/Cargo.toml +++ b/asyncgit/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] git2 = "0.10" -rayon = "1.3" +rayon-core = "1.7" crossbeam-channel = "0.4" log = "0.4" scopetime = { path = "../scopetime" } \ No newline at end of file diff --git a/asyncgit/src/lib.rs b/asyncgit/src/lib.rs index 31ceeea3..a2f5e680 100644 --- a/asyncgit/src/lib.rs +++ b/asyncgit/src/lib.rs @@ -52,7 +52,7 @@ impl AsyncDiff { let arc_clone = Arc::clone(&self.current); let sender = self.sender.clone(); - rayon::spawn(move || { + rayon_core::spawn(move || { let res = get_diff(file_path.clone(), stage); let mut notify = false; {