Skip to content
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

Support [profile.*] for setting things across all profiles #7439

Closed
nox opened this issue Sep 26, 2019 · 2 comments
Closed

Support [profile.*] for setting things across all profiles #7439

nox opened this issue Sep 26, 2019 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@nox
Copy link
Contributor

nox commented Sep 26, 2019

Looking at the ongoing effort to reduce build times across the ecosystem, I've stumbled upon this commit, which makes syn and other build-time dependencies be compiled with no debug info nor optimisations. This is neat, but it only happens for the dev profile, whereas AFAICT we don't want to compile syn with optimisations even in release mode in this instance. Unfortunately, the Cargo manifest has no way to specify things for multiple profiles at all.

Would it make sense to support something like [profile.*.blablabla] to set something across all profiles at once?

@nox nox added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Sep 26, 2019
@ehuss
Copy link
Contributor

ehuss commented Sep 26, 2019

There are multiple changes underway that may address this in a way.

Named profiles introduce an inheritance mechanism where profiles can inherit the values from other profiles.

Build profiles will allow you to set a common profile for build scripts and proc macros.

Would those be sufficient to express what you want?

@nox
Copy link
Contributor Author

nox commented Sep 26, 2019

The build profiles thing seems like it totally supersedes what I want, thanks for the pointer!

@nox nox closed this as completed Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants