From 3dcd8463023fb32ade0bc517b46836b9604b557a Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 5 Aug 2021 14:53:47 +0800 Subject: [PATCH] added rayon dependency --- Cargo.lock | 36 ++++++++++++++++++++++++++++++++++++ nac3core/Cargo.toml | 1 + 2 files changed, 37 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 5dc26c9f..ff33e7cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -468,6 +468,7 @@ dependencies = [ "num-bigint 0.3.2", "num-traits", "parking_lot", + "rayon", "rustpython-parser", "test-case", ] @@ -538,6 +539,16 @@ dependencies = [ "autocfg", ] +[[package]] +name = "num_cpus" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" +dependencies = [ + "hermit-abi", + "libc", +] + [[package]] name = "once_cell" version = "1.8.0" @@ -773,6 +784,31 @@ dependencies = [ "rand_core", ] +[[package]] +name = "rayon" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" +dependencies = [ + "autocfg", + "crossbeam-deque", + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "lazy_static", + "num_cpus", +] + [[package]] name = "redox_syscall" version = "0.2.9" diff --git a/nac3core/Cargo.toml b/nac3core/Cargo.toml index e7081bf5..c0581cc1 100644 --- a/nac3core/Cargo.toml +++ b/nac3core/Cargo.toml @@ -12,6 +12,7 @@ rustpython-parser = { git = "https://github.com/RustPython/RustPython", branch = itertools = "0.10.1" crossbeam = "0.8.1" parking_lot = "0.11.1" +rayon = "1.5.1" [dev-dependencies] test-case = "1.2.0"