finds.dev

rayon-rs/rayon

Rayon: A data parallelism library for Rust

View on GitHub

★ 13,417RustApache-2.0updated Oct 2026

// the take

Rayon is a data-parallelism library for Rust that turns sequential iterator chains into parallel ones with a near drop-in API (`.iter()` to `.par_iter()`), plus lower-level `join`/`scope` primitives for custom parallel tasks. It's for Rust developers parallelizing CPU-bound work like sorting, map/reduce, or numeric loops who want speedups without hand-rolling thread management.

The `par_iter()` swap is genuinely that simple for the common case, and the parallel iterator API mirrors std's `Iterator` closely enough that there's no new mental model to learn. The work-stealing scheduler with a shared global thread pool means nested parallel calls compose safely without deadlocking or over-subscribing cores. Data-race freedom comes from Rust's existing `Send`/`Sync` bounds rather than a bolted-on custom checker, so if it compiles it's actually safe. The crate has been split into `rayon-core` for years and is stable enough to be a near-default dependency across the ecosystem.

It's CPU-thread parallelism only — no SIMD or GPU story, so it won't help workloads that need vectorized or device execution. WebAssembly support silently falls back to single-threaded execution unless you bring in a separate adapter (wasm-bindgen-rayon) and reconfigure your build, which is an easy way to ship no speedup and not notice. The global thread pool is process-wide by default, so mixing it with another thread-pool-heavy dependency (like an async runtime's blocking pool) can cause contention that's annoying to diagnose. The API makes it trivially easy to parallelize workloads too small to benefit, where the overhead actually makes `par_iter()` slower than the sequential version — a common first mistake.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
13,417
Forks
619
Language
Rust
License
Apache-2.0
Last commit
27 Oct 2026

// nearby

If rayon isn't quite it.

All repos →