zed: Allocate more rayon threads depending on available parallelism (#43235)

While zed itself is not a heavy user of rayon, wasmtime is, especially
for compilation. This change is similar to the rayon default but we
halve the number of threads still so we don't spawn too many threads
overall.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
1ce58a88ccLukas Wirth committed on 11/21/2025, 10:33:38 AM· committed by GitHubparenta30887f
2 files changedLine totals unavailable