pub fn num_threads() -> usize
Total Rayon worker count (configured from [RuntimeConfig::pool_workers]).
RuntimeConfig::pool_workers
On wasm there is no thread pool — the browser is single-threaded — so this is always 1.