Closed mulimoen closed 4 years ago
That's very nice, thanks! The feature name multi_thread
is good in my opinion.
This is a breaking change btw, as someone could have default-features = False
in their Cargo.toml
I had not realized that. Thanks for pointing it out. Guess I'll try to syncrhonize the version bump with another breaking change I'm thinking of. I should probably maintain a file of planned breaking changes.
And eventually find ways to commit to a more stable API of course...
As mentioned in #208 rayon will panic when creating a threadpool on targets which do not have threads. This PR puts
rayon
andnum_cpus
behind the feature flagmulti_thread
(suggestions for name?), but otherwise follows exactly the same code path as theFixed(1)
case.Fixes #208