-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Repro steps:
- Create
build.rs
and make appropriate entry in Cargo.toml - Have
build.rs
conditionally 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 --verbose
again. This time, I would expect it to be a noop, but it rebuildsfoo.rs
cargo build --verbose
again. 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-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.