rust/compiler/rustc_thread_pool
2025-06-11 11:12:32 -07:00
..
src Fix format and tidy for code moved from rayon 2025-06-11 11:12:32 -07:00
tests Fix format and tidy for code moved from rayon 2025-06-11 11:12:32 -07:00
Cargo.toml Move rayon-core to rustc_thread_pool files as is 2025-06-11 10:43:59 -07:00
LICENSE-APACHE Move rayon-core to rustc_thread_pool files as is 2025-06-11 10:43:59 -07:00
LICENSE-MIT Move rayon-core to rustc_thread_pool files as is 2025-06-11 10:43:59 -07:00
README.md Move rayon-core to rustc_thread_pool files as is 2025-06-11 10:43:59 -07:00

Note: This is an unstable fork made for use in rustc

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 mirrored 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.63.0 or greater.