This PR introduces a dependency on maybe_parallel_iterator to make rayon optional, adding much better support for WebAssembly. The default is to use rayon, matching the old behavior. Clients can pass default-features=false in their Cargo.toml to avoid it.
Full disclosure: I am the author of maybe_parallel_iterator, which is currently a wrapper around rayon.
This PR introduces a dependency on
maybe_parallel_iterator
to makerayon
optional, adding much better support for WebAssembly. The default is to userayon
, matching the old behavior. Clients can passdefault-features=false
in theirCargo.toml
to avoid it.Full disclosure: I am the author of
maybe_parallel_iterator
, which is currently a wrapper aroundrayon
.Fixes #12