better way to differentiate development and production builds #17465
Labels
component/dev
Dev related issues, such as rise dev, ci.
no-issue-activity
type/enhancement
Improvements to existing implementation.
Sometimes, we may expect different behaviors in development and production builds for various reasons:
Currently the best way to differentiate them is through the compiling flag of
debug_assertions
, given that it's a common convention in Rust to differentiatedev
andrelease
profile. This works adequately, but it could be improved further.ci-release
(which enablesdebug_assertions
intentionally) instead ofrelease
profileIt would be better if we can find a better way to do this.
Note that we are mainly focusing on the compile-time flag here over runtime flag (like args, configuration, or env vars), in order to build a stricter boundary.
Originally posted by @xxchan in #17396 (comment)
The text was updated successfully, but these errors were encountered: