dev-rust/rayon: Add a proper ebuild for rayon.

I'm using it in the new deqp runner, and it's a very popular crate.

BUG=b:171728575
TEST="emerge-trogdor deqp-runner"

Change-Id: I1b0ba363751fabe48bc9442fc34b28fff9a039d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2521900
Tested-by: Eric Anholt <anholt@google.com>
Reviewed-by: Eric Anholt <anholt@google.com>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Commit-Queue: Eric Anholt <anholt@google.com>
diff --git a/dev-rust/rayon-core/Manifest b/dev-rust/rayon-core/Manifest
new file mode 100644
index 0000000..b0f03d4
--- /dev/null
+++ b/dev-rust/rayon-core/Manifest
@@ -0,0 +1 @@
+DIST rayon-core-1.9.0.crate 63787 BLAKE2B bc5f930b1ce8e9fde03c01df7a53eeb3318ae24ac1c6b22e401a0b2359f4b9d6e419fcd41c7db33881c4ec29fbb844a44e2cff747d7dde2133668e733f8b6966 SHA512 d05b4c1e7bcb1c4e9238ab08bde39f08f069a08593084f041720694bae8bd524d1761766beb93e97784d7d541bde3e290446344fe129b0e10491405c1577366f
diff --git a/dev-rust/rayon-core/rayon-core-1.9.0.ebuild b/dev-rust/rayon-core/rayon-core-1.9.0.ebuild
new file mode 100644
index 0000000..24abf09
--- /dev/null
+++ b/dev-rust/rayon-core/rayon-core-1.9.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+CROS_RUST_REMOVE_DEV_DEPS=1
+
+inherit cros-rust
+
+DESCRIPTION="Rayon-core represents the core, stable APIs of Rayon: join, scope, and so forth"
+HOMEPAGE="https://github.com/rayon-rs/rayon"
+SRC_URI="https://crates.io/api/v1/crates/${PN}/${PV}/download -> ${P}.crate"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="${PV}/${PR}"
+KEYWORDS="*"
+
+DEPEND="
+	=dev-rust/crossbeam-channel-0.5*:=
+	=dev-rust/crossbeam-deque-0.8*:=
+	=dev-rust/crossbeam-utils-0.8*:=
+	=dev-rust/lazy_static-1*:=
+	>=dev-rust/num_cpus-1.2:= <dev-rust/num_cpus-2.0
+"
diff --git a/dev-rust/rayon/Manifest b/dev-rust/rayon/Manifest
new file mode 100644
index 0000000..87b3380
--- /dev/null
+++ b/dev-rust/rayon/Manifest
@@ -0,0 +1 @@
+DIST rayon-1.5.0.crate 158037 BLAKE2B 6cb7f696e9c04d3aa6c3bf9c95690c2e259267024ac9701da5cd85c7d39b900a7e9e423e5b7602e108587a34c2519642ce1456dfd82fb13328ed3aba7516b569 SHA512 be15cbc7ad0fadb55e5640c78aa2eeac282872be88c5402338caad0a7ea604d2b8477648dcf7e453e22fbcdfefa915aa4bdbfa75e3d4f7a993fd8d85ed68395a
diff --git a/dev-rust/rayon/rayon-1.5.0.ebuild b/dev-rust/rayon/rayon-1.5.0.ebuild
new file mode 100644
index 0000000..c980ef2
--- /dev/null
+++ b/dev-rust/rayon/rayon-1.5.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+CROS_RUST_REMOVE_DEV_DEPS=1
+
+inherit cros-rust
+
+DESCRIPTION="Rayon is a data-parallelism library for Rust"
+HOMEPAGE="https://github.com/rayon-rs/rayon"
+SRC_URI="https://crates.io/api/v1/crates/${PN}/${PV}/download -> ${P}.crate"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="${PV}/${PR}"
+KEYWORDS="*"
+
+DEPEND="
+	=dev-rust/autocfg-1*:=
+	=dev-rust/crossbeam-deque-0.8*:=
+	=dev-rust/either-1*:=
+	>=dev-rust/rayon-core-1.9:= <dev-rust/rayon-core-2.0
+"