-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Description
Repro steps:
- Create
build.rsand make appropriate entry in Cargo.toml - Have
build.rsconditionally generate a filesrc/foo.rs(eg generate file if it doesn't exist, or generate file if mtime is older than its configuration) cargo build --verbose(should run build script, generate file, and buildfoo.rs)cargo build --verboseagain. This time, I would expect it to be a noop, but it rebuildsfoo.rscargo build --verboseagain. This time it's a noop as expected.
I am running into this issue because I am compiling a .proto file into a protobuf rs file during the build.rs phase.
MingweiSamuel
Metadata
Metadata
Assignees
Labels
A-build-scriptsArea: build.rs scriptsArea: build.rs scriptsA-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.