Cargo installing multiple bin crates doesn't build them in parallel
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 15.5k
- Forks
- 3k
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 51
Description
Describe the problem you are trying to solve
When installing multiple bin crates, such as suggested by the rustc-dev-guide build instructions they are built sequentially. This doesn't fully utilize available parallelism on many-core systems and thus leads to longer build times than necessary.
Describe the solution you'd like
It would be nice if the binaries could be built in parallel under a shared jobserver to reduce wall-time for the install command.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sequential installation described in the rustc-dev-guide build instructions and measure whether multiple bin crates run serially. Then trace Cargo's install path and jobserver handling; done means the binaries build in parallel under a shared jobserver without reducing build correctness.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100