Skip to content

Suppress dbg! in release build #58383

Closed
Closed
@jfcarr

Description

@jfcarr

I'm hesitant to open this issue, because I suspect it has an obvious answer that I'm missing.

Anyway...

I love the new dbg! macro in 1.32.0. But, given that its purpose is outputting debugging messages, should its output be suppressed in a project's release build? (cargo build --release)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions