Skip to content

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

Closed
@nox

Description

@nox

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions