-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for PR #3361 #3391
Comments
@alexcrichton hello again! now that 1.15 is out with this change, what do you think of completing the change on the current nightly? Assuming it gets in to 1.17, that would mean users would get the |
Good question! @rust-lang/tools -- thoughts about whether we're far enough along to implement this change? |
Could you clarify what exactly the change is? My understanding is that currently if Is this a backwards incompatible change? |
@nrc sure yeah, the state of play is this:
The concrete change to make here is to automatically infer A preliminary list of crates with |
How does Cargo know if build.rs is a build script or not? To be clear, this is only crates with build.rs in the root? Or would this break for |
Cargo does no inference based on file contents, just location. And yeah it's only Cargo's proposed logic is that if |
Thanks for the clarifications! I think this is OK to go ahead with - we'll have had 2 whole warning cycles and the fix is pretty trivial. |
If cargo sees a `build.rs` file in the same directory as the current `Cargo.toml`, it will assume that the `build.rs` file is a build script, _unless there is_ `build = false` _in the _ `Cargo.toml` _file_. Closes rust-lang#3391
Assume that a `build.rs` file is a build script If cargo sees a `build.rs` file in the same directory as the current `Cargo.toml`, it will assume that the `build.rs` file is a build script, unless there is `build = false` in the `Cargo.toml` file. Closes #3391
Per @alexcrichton in this comment, I am opening a tracking issue for the plan to eventually change cargo to assume that a
build.rs
file in the same directory as aCargo.toml
file is a build script. Right nowcargo
just issues a warning when it sees abuild.rs
file in the same directory as aCargo.toml
file that lacks abuild = ...
value.Original PR:
#3361
The text was updated successfully, but these errors were encountered: