Skip to content

Conditional compilation: Cfg option for debug vs. release Cargo(-esque) profile #14974

Closed as not planned
@minggfeng

Description

@minggfeng

Much like in this Users thread, I would like to be able to target debug builds with cfg!() (in order to hide logging output only on release builds). I have some ways of accomplishing this, but it'd be convenient to have a cfg flag that we could target, independent of debug_assertions.

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`S-propose-closeStatus: A team member has nominated this for closing, pending further input from the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions