Could the num_cpus dependency be replaced by std::thread::available_parallelism?
From looking at the implementation of both and the discussion on https://github.com/seanmonstar/num_cpus I get the impression that this would not be a breaking change.
Can you link to the discussion you're referring to?
seanmonstar/num_cpus#130 and seanmonstar/num_cpus#117.
I'm open to this, since removing a dependency is always a good idea. First though, I would want to understand in what circumstances num_cpus and available_parallelism will return different answers. Also, people might be using num_cpus to print out system specs, so if the change to available_parallelism would break that, we can't do it. This doesn't preclude adding a new function available_parallelism.