rust-lang / rust-lang/cargo

Don't use incremental compilation for build scripts

Open
#8,545 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-profiles S-needs-info
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Similar to https://github.com/rust-lang/cargo/pull/8500, but going a step further by saying that usually build scripts aren't being edited by users, and even when they are, are quick to compile regardless. Incremental compilation is a net-negative if you're only going to compile once (compare "incremental full" and "full" on https://perf.rust-lang.org/dashboard.html).

This was noted while trying to cut down benchmark times on perf.rust-lang.org.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the related rust-lang/cargo#8500 pull request and the build-script compilation behavior in Cargo. Compare “incremental full” with “full” on perf.rust-lang.org; done means build scripts no longer use incremental compilation and the benchmark behavior reflects the intended reduction.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.