-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(toml): Parse support for multiple build scripts #15630
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
base: master
Are you sure you want to change the base?
Conversation
Feel free to rebase on |
60fe887
to
f6bebc3
Compare
b7a6036
to
1d18b6b
Compare
0321144
to
6de78d5
Compare
21dbd79
to
902bd62
Compare
902bd62
to
98a9565
Compare
src/cargo/util/toml/targets.rs
Outdated
if custom_build.len() > 1 { | ||
anyhow::bail!("multiple build scripts feature is not implemented yet! ") | ||
} | ||
let custom_build = Path::new(&custom_build[0]); | ||
let name = format!( | ||
"build-script-{}", | ||
custom_build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We'll need to loop over
- Do we need to make build script names more unique?
d419489
to
ce0aacd
Compare
94004f8
to
0febd42
Compare
951888c
to
6dd2227
Compare
r? @epage |
99a459d
to
c01a8bd
Compare
src/doc/src/reference/unstable.md
Outdated
## Multiple Build Scripts | ||
* Original Pull Request: [#15630](https://github.com/rust-lang/cargo/pull/15630) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use #14903 as the tracking issue. Please link to it from here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I also mention about GSoC?
c01a8bd
to
a123df8
Compare
a123df8
to
74b5190
Compare
Hi Everyone!
This is PR for the manifest parsing of the first milestone of GSoC Project : Build Script Delegation
What does this PR try to resolve?
Currently, just a single build script is allowed for each package. This PR will allow users to create and use multiple build scripts, and is backward compatible with single script as well as boolean values.
Motivation : This will help users to maintain separate smaller and cleaner build scripts instead of one large build script. This is also necessary for build script delegation.
Open questions:
Known Issues:
How to test and review this PR?
There is a feature gate
multiple-build-scripts
that can be passed viacargo-features
inCargo.toml
. So, you have to addPreferably on the top of the
Cargo.toml
and use nightly toolchain to use the featureThis PR is ready to be reviewed and merged