Is there a way to make it use the number of CPU cores instead of hardcoding a fixed value into a config file that’s used on different machines?
Id expect the stabilized default to be number of cores. No idea where this effort is at but at one point they were going to use jobserver to coordinate across cargo's rustc invokations at which point cargo's job count will be used which defaults to number of cores (and supports counting down from that with negative numbers.
> $ RUSTFLAGS="-Z threads=8" cargo build --release