Subject: [bug#74767] [PATCH rust-team 02/23] build/cargo: Honor #:parallel-build? and #:parallel-tests? arguments.

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 11 Dec 2024 10:11:47 +0900

Hi Efraim,

Efraim Flashner <[email-masked]> writes:

> Should probably have cargo test not honor both parallel-build and
> parallel-tests at the same time.

According to the doc [0], these switches are different; -j will cause the
test binaries or other assets to be built in parallel, while
--test-threads will cause the parallelization of tests.  I believe
that's the same we currently do for gnu-build-system.

[0]  https://doc.rust-lang.org/cargo/commands/cargo-test.html#miscellaneous-options

> Also, currently the builds and tests try to use all the cores available,
> so if parallel-{build,tests} is false it should go down to 1.

Good point.  I'll fix that.

-- 
Thanks,
Maxim