build profile
Debug (fast to build, checked) or release (optimized) settings for a build.
A profile is a named set of compiler settings; dev (debug) builds quickly with checks on, release optimizes (cargo build --release).
Loading interactive…
Examples
A program that checks
cfg!(debug_assertions)printsThis is a debug build.undercargo runandThis is a release build.undercargo run --release.level += 10on au8holding 250 panics in a debug build but wraps to 4 in a release build.
See also