9 stable releases

1.4.1 Jul 17, 2018
1.4.0 Feb 15, 2018
1.3.0 Nov 9, 2017
1.2.1 Jun 15, 2017
0.0.1 Mar 11, 2017

#10 in Concurrency

Download history 22639/week @ 2018-10-12 21230/week @ 2018-10-19 25741/week @ 2018-10-26 23715/week @ 2018-11-02 26930/week @ 2018-11-09 26142/week @ 2018-11-16 23182/week @ 2018-11-23 26500/week @ 2018-11-30 28585/week @ 2018-12-07 26380/week @ 2018-12-14 21974/week @ 2018-12-21 22431/week @ 2018-12-28 26599/week @ 2019-01-04 25107/week @ 2019-01-11 27057/week @ 2019-01-18

85,120 downloads per month
Used in 667 crates (3 directly)

Apache-2.0/MIT

148KB
2.5K SLoC

Rayon-core represents the "core, stable" APIs of Rayon: join, scope, and so forth, as well as the ability to create custom thread-pools with ThreadPool.

Maybe worth mentioning: users are not necessarily intended to directly access rayon-core; all its APIs are mirror in the rayon crate. To that end, the examples in the docs use rayon::join and so forth rather than rayon_core::join.

rayon-core aims to never, or almost never, have a breaking change to its API, because each revision of rayon-core also houses the global thread-pool (and hence if you have two simultaneous versions of rayon-core, you have two thread-pools).

Please see Rayon Docs for details about using Rayon.

Rayon-core currently requires rustc 1.13.0 or greater.


lib.rs:

Under construction

Restricting multiple versions

In order to ensure proper coordination between threadpools, and especially to make sure there's only one global threadpool, rayon-core is actively restricted from building multiple versions of itself into a single target. You may see a build error like this in violation:

error: native library `rayon-core` is being linked to by more
than one package, and can only be linked to by one package

While we strive to keep rayon-core semver-compatible, it's still possible to arrive at this situation if different crates have overly restrictive tilde or inequality requirements for rayon-core. The conflicting requirements will need to be resolved before the build will succeed.

Dependencies

~583KB
~10K SLoC

  • build build.rs
  • dev rand 0.5