sparsemat / sprs

sparse linear algebra library for rust
Apache License 2.0
386 stars 45 forks source link

Make rayon optional #208

Closed mulimoen closed 4 years ago

mulimoen commented 4 years ago

After upgrading to 0.8 the crate can no longer be used on the wasm32 target, as a threadpool can not be initialized:

panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Custom { kind: Other, error: "operation not supported on this platform" }) }'

Could the dependency on rayon be made into a (default) feature instead, to allow usage on this platform?

vbarrielle commented 4 years ago

Yes having it default but optional seems the way to go.