Conditional compilation for debug release #59999
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
needs-rfc
This change is large or controversial enough that it should have an RFC accepted before doing it.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
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 acfg
flag that we could target, independent ofdebug_assertions
.The text was updated successfully, but these errors were encountered: